3 Commits
Author SHA1 Message Date
Amnibroandancsemi 70e2a1ff4e Keep a bracketed file name from counting as a posted link (#5832)
An uploaded file's message, [file:name](/uploads/...), is skipped by the link check so a name like ssstwitter.com_123.mp4 is not read as a link. The name had to be free of ] to match, so downloads named like fxtwitter.com [720p].mp4 were still refused when link sharing was restricted. The name may now hold balanced [...] pairs.

Co-authored-by: ancsemi <ancsemi@gmail.com>
2026-10-27 07:48:33 -04:00
ancsemi c5a31ee67a Stop an uploaded file's name from counting as a posted link 2026-10-17 21:03:25 -04:00
ancsemi 83ed80373e Auto-mod: a bare address inside code in a chat message is not a link
People pasting setup commands had messages deleted, and strikes counted
toward a mute or ban, for things like ghcr.io/owner/image that Haven never
makes clickable. In chat messages (sends, edits, scheduled messages, thread
replies and messages bridged from Discord), code blocks and inline code now
only count their full http(s) links; bare addresses there are ignored. Full
links are checked wherever they sit, since a full link in inline code is
clickable. Profiles, topics and titles are checked as before.
2026-10-02 11:06:00 -04:00