Sneedchat attachments ignore the upload-host setting #40

Closed
opened 2026-08-29 09:59:40 -04:00 by Salastil · 1 comment
Owner

Settings → Uploads says the host choice covers "IRC, and anything Sneedchat's own uploader refuses". It does not reach Sneedchat at all.

sendMessage's sockchat branch (rpc/methods.rs:1025) calls backend::sockchat::send_attachment unconditionally, and that function is hardwired to postimg.cc — its signature takes no host parameter, so the choice cannot reach it even in principle. The uploadHost param is read only on the IRC branch.

To reproduce: set the upload host to Catbox, attach an .mp4 in a Sneedchat room. It fails with "postimg.cc only accepts images" instead of uploading to catbox.

Done looks like: a Sneedchat send honours uploadHost, falling back to postimg only when that is what was chosen. Note postimg is genuinely images-only and 32MB-capped, so the refusal is correct for postimg — the bug is that no other host is reachable.


Filed from a protocol coverage survey of the four deployed protocols, 2026-08-29 (moho 1a11250, nobilis 030707f).

Settings → Uploads says the host choice covers "IRC, and anything Sneedchat's own uploader refuses". It does not reach Sneedchat at all. `sendMessage`'s sockchat branch (`rpc/methods.rs:1025`) calls `backend::sockchat::send_attachment` unconditionally, and that function is hardwired to postimg.cc — its signature takes no host parameter, so the choice cannot reach it even in principle. The `uploadHost` param is read only on the IRC branch. **To reproduce:** set the upload host to Catbox, attach an `.mp4` in a Sneedchat room. It fails with "postimg.cc only accepts images" instead of uploading to catbox. **Done looks like:** a Sneedchat send honours `uploadHost`, falling back to postimg only when that is what was chosen. Note postimg is genuinely images-only and 32MB-capped, so the refusal is correct *for postimg* — the bug is that no other host is reachable. --- _Filed from a protocol coverage survey of the four deployed protocols, 2026-08-29 (moho `1a11250`, nobilis `030707f`)._
Salastil added the bug label 2026-08-29 09:59:40 -04:00
Author
Owner

Finished — nobilis d0b3adb, moho fe65896

Finished — nobilis [`d0b3adb`](https://git.salastil.com/Salastil/nobilis/commit/d0b3adb), moho [`fe65896`](https://git.salastil.com/Salastil/moho/commit/fe65896)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Salastil/moho#40