Commit b57ca4d2 authored by Manuel Cortez's avatar Manuel Cortez

Fix error on 'open in vk' for group topics

parent 2fe58941
......@@ -225,7 +225,7 @@ class baseBuffer(object):
if ("comments" in p) == False:
m.comment.Enable(False)
m.open_in_browser.Enable(False)
if "type" in p and p["type"] != "friend" and p["type"] != "audio" and p["type"] != "video" and p["type"] != "playlist":
if "type" in p and p["type"] != "friend" and p["type"] != "audio" and p["type"] != "video" and p["type"] != "playlist" or self.name != "home_timeline":
m.open_in_browser.Enable(True)
widgetUtils.connect_event(m, widgetUtils.MENU, self.open_post, menuitem=m.open)
widgetUtils.connect_event(m, widgetUtils.MENU, self.do_like, menuitem=m.like)
......@@ -524,6 +524,7 @@ class topicBuffer(feedBuffer):
def open_in_browser(self, *args, **kwargs):
post = self.get_post()
print(post)
if post == None:
return
# In order to load the selected topic we firstly have to catch the group_id, which is present in self.kwargs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment