From 35e0892ebc92a11762c841dfd216349fb49898ab Mon Sep 17 00:00:00 2001 From: Manuel cortez Date: Wed, 21 Jan 2026 14:13:49 -0600 Subject: [PATCH] mastodon: fix: ensure correct visual ordering of pinned posts in non-profile buffers --- src/sessions/mastodon/session.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sessions/mastodon/session.py b/src/sessions/mastodon/session.py index b0dfbc42..76db8f07 100644 --- a/src/sessions/mastodon/session.py +++ b/src/sessions/mastodon/session.py @@ -177,6 +177,9 @@ class Session(base.baseSession): continue is_pinned = getattr(i, "pinned", False) or (isinstance(i, dict) and i.get("pinned", False)) + # Only apply pinning logic in user timelines or the 'sent' buffer. + if not name.endswith("-timeline") and name != "sent": + is_pinned = False if self.settings["general"]["reverse_timelines"] == False: # Standard (Old -> New). Pinned items are at the end.