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,6 +200,9 @@ class Handler(object):
def open_timeline(self, controller, buffer): def open_timeline(self, controller, buffer):
if not hasattr(buffer, "get_item"): if not hasattr(buffer, "get_item"):
return return
if hasattr(buffer, "community_url"):
item = buffer.get_item_from_instance()
else:
item = buffer.get_item() item = buffer.get_item()
if buffer.type == "user": if buffer.type == "user":
users = [item.acct] users = [item.acct]