Mastodon: Allow to create user timelines from community local buffers

This commit is contained in:
Manuel Cortez 2024-11-26 22:44:38 -06:00
parent 10b17b2d6f
commit 002d0a5709

View File

@ -200,7 +200,10 @@ class Handler(object):
def open_timeline(self, controller, buffer):
if not hasattr(buffer, "get_item"):
return
item = buffer.get_item()
if hasattr(buffer, "community_url"):
item = buffer.get_item_from_instance()
else:
item = buffer.get_item()
if buffer.type == "user":
users = [item.acct]
elif buffer.type == "baseBuffer":