Now it is possible to open a timeline, no matter in what buffer you are

This commit is contained in:
Manuel Cortez 2016-04-15 09:06:18 -05:00
parent c00a0bc35c
commit d4aac60164
2 changed files with 3 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class baseBuffer(object):
def get_users(self): def get_users(self):
post = self.session.db[self.name]["items"][self.tab.list.get_selected()] post = self.session.db[self.name]["items"][self.tab.list.get_selected()]
if post.has_key("type") == False: if post.has_key("type") == False:
return post["from_id"] return [post["from_id"]]
else: else:
return [post["source_id"]] return [post["source_id"]]

View File

@ -194,7 +194,8 @@ class Controller(object):
def new_timeline(self, *args, **kwargs): def new_timeline(self, *args, **kwargs):
b = self.get_current_buffer() b = self.get_current_buffer()
if not hasattr(b, "get_users"): return if not hasattr(b, "get_users"):
b = self.search("home_timeline")
ids = b.get_users() ids = b.get_users()
d = [] d = []
for i in ids: for i in ids: