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):
|
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"]]
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user