Now it is possible to open a timeline, no matter in what buffer you are
This commit is contained in:
parent
c00a0bc35c
commit
d4aac60164
@ -154,7 +154,7 @@ class baseBuffer(object):
|
||||
def get_users(self):
|
||||
post = self.session.db[self.name]["items"][self.tab.list.get_selected()]
|
||||
if post.has_key("type") == False:
|
||||
return post["from_id"]
|
||||
return [post["from_id"]]
|
||||
else:
|
||||
return [post["source_id"]]
|
||||
|
||||
|
@ -194,7 +194,8 @@ class Controller(object):
|
||||
|
||||
def new_timeline(self, *args, **kwargs):
|
||||
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()
|
||||
d = []
|
||||
for i in ids:
|
||||
|
Loading…
Reference in New Issue
Block a user