From 002d0a57090f776464fea885d350c3347ecf2cf3 Mon Sep 17 00:00:00 2001 From: Manuel cortez Date: Tue, 26 Nov 2024 22:44:38 -0600 Subject: [PATCH] Mastodon: Allow to create user timelines from community local buffers --- src/controller/mastodon/handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controller/mastodon/handler.py b/src/controller/mastodon/handler.py index 13bab074..937f5c20 100644 --- a/src/controller/mastodon/handler.py +++ b/src/controller/mastodon/handler.py @@ -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":