Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Colin McMillen
@colin_mcmillen@piaille.fr  ·  activity timestamp 2 months ago

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().

  • Copy link
  • Flag this post
  • Block
Colin McMillen
@colin_mcmillen@piaille.fr replied  ·  activity timestamp 2 months ago

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

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login