From b57ca4d20704647bb9a7f70001a2099977e16c11 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 14 Apr 2019 23:51:18 -0500 Subject: [PATCH] Fix error on 'open in vk' for group topics --- src/controller/buffers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controller/buffers.py b/src/controller/buffers.py index aea89b0..f2530ed 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -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