Elektrine lite

← Feed

@colin_mcmillen@piaille.fr

Post #2056175

2025-09-13 09:50 UTC

Let's live-toot the adding of quote-posting to #Mastodon for #AppleII, in case it interests some nerds. First of all, let's detect whether a toot is quotable: https://github.com/colinleroy/a2tools/commit/275c282698a18169fcd0bda3ffbc0af55cbdbfe2 The JSON field `quote_approval.current_user` of a Status entity will either contain `automatic`, `manual`, `denied` or `unsupported_policy`. We'll consider everything but `denied` as quotable. If the field doesn't exist, for retro-compatibility, we'll use a default `d`. In the commit you'll see that we compare the first character of that field to `d`, this is much tighter size-wise than an strcmp().

Replies (1)

  • @colin_mcmillen@piaille.fr 2025-09-13 09:52

    Now that we have a `quotable` field in our status struct, we can update the menu to show the possibility of quoting: https://github.com/colinleroy/a2tools/commit/2410791c1d1ae82b521763400d430040cb198cee As 'Q' was used to Quit, we also rename 'Quit(Q)' to 'Exit(X)' so that the Quote action has a good shortcut. #RetroComputing #AppleII #Mastodon

    Open ##2900478