Skip to content

Replace Mastodon reply threads with a single truncated post - #198

Merged
binamkayastha merged 3 commits into
masterfrom
drop-mastodon-threads
Oct 14, 2026
Merged

binamkayastha merged 3 commits into
masterfrom
drop-mastodon-threads

Conversation

@michaelgt04

@michaelgt04 michaelgt04 commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

The comments aren't looking great on Mastadon, so we want to get rid of the thread, truncate at the sentence level, and then reference the link.

Closes #173

@binamkayastha

Copy link
Copy Markdown
Collaborator
CleanShot 2026-10-11 at 11 32 40@2x Great start!

https://mastodon.social/@JustAnotherCutePet/117422982788726877

I ran this with the debugposters flag off in dev, and it looks much better without the extra threads, but the link doesn't seem to be working.

_safe_truncate previously fell back to a word-boundary cut, which can
end a truncated caption mid-sentence. Now prefer the last complete
sentence (ending in . ! or ?) that fits within the limit, and fall back
to the word-boundary/hard cuts as before when no sentence fits.
Threads only existed to hold caption overflow past 500 characters, but
the overflow text is the pet bio, which already lives in full at the
adoption link carried on the root post. Drop _post_thread,
_split_reply_chunks, and MAX_REPLIES, and point readers there instead:
overflow captions now end with 'More details at link 🔗', omitted when
the post has no link. Publishing is now one status_post, so a mid-thread
failure can no longer leave an orphaned root.
@michaelgt04
michaelgt04 force-pushed the drop-mastodon-threads branch from 378fac8 to ce98203 Compare October 14, 2026 00:40

@binamkayastha binamkayastha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
We think the link issues is cause rescue groups "debug" data is not in the right format

@binamkayastha
binamkayastha merged commit a7ba8b9 into master Oct 14, 2026
2 checks passed
@binamkayastha
binamkayastha deleted the drop-mastodon-threads branch October 14, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

For Mastadon - update the posts so we don't have threads

2 participants