Profile pic

洪 民憙 (Hong Minhee), hongminhee@lemmy.ml

Instance: lemmy.ml
Joined: 2 years ago
Posts: 92
Comments: 5

A software engineer from Seoul. An advocate of F/OSS, fediverse, and cypherpunk. Hack into East Asian languages.

https://hongminhee.org/

RSS feed

Posts and Comments by 洪 民憙 (Hong Minhee), hongminhee@lemmy.ml

onUnverifiedActivity() only runs when signature verification fails: missing signature, bad signature, or a key lookup failure. It gives you a chance to handle those cases yourself instead of Fedify immediately returning 401 Unauthorized. If the signature verifies, this hook is not involved.

If you want extra validation for verified activities, do that in your normal .on() handlers. Those run after signature verification, so that’s where app-specific checks belong, like rejecting certain actors or applying your own rate limits.


RSS feed

Posts by 洪 民憙 (Hong Minhee), hongminhee@lemmy.ml

Comments by 洪 民憙 (Hong Minhee), hongminhee@lemmy.ml

onUnverifiedActivity() only runs when signature verification fails: missing signature, bad signature, or a key lookup failure. It gives you a chance to handle those cases yourself instead of Fedify immediately returning 401 Unauthorized. If the signature verifies, this hook is not involved.

If you want extra validation for verified activities, do that in your normal .on() handlers. Those run after signature verification, so that’s where app-specific checks belong, like rejecting certain actors or applying your own rate limits.


Thanks for the feedback! The style choices are intentional and all valid CommonMark:

  • *Heading styles*: Setext (===/---) for H1/H2 makes major sections visually prominent in plain text, while ATX (###) is used for deeper levels. This hybrid approach optimizes readability in the raw source.

  • *Four tildes*: Tildes are valid CommonMark delimiters, just less common. They’re chosen because code often contains backticks (shell commands, string literals), so tildes avoid visual clutter.

The core philosophy is that Markdown should be readable as plain text, not just after rendering. These choices prioritize scanning structure in a text editor. That said, it’s definitely an opinionated style—not for everyone!


Basically a combination of GFM with a few extensions such as definition lists!