chiark / gitweb /
Fix display of pending follow requests.
authorSimon Tatham <anakin@pobox.com>
Sat, 3 Feb 2024 10:27:58 +0000 (10:27 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 3 Feb 2024 10:27:58 +0000 (10:27 +0000)
commit1e9355bcb2a5baef8ab993e696dd98833651892f
treec68d37326546fecdc614170e10dfe66e2b19a1f1
parent21da9165f01ce2ba7f962e4bc1f5b4afcc2fbce7
Fix display of pending follow requests.

I had misunderstood the Mastodon docs' description of
Relationship::requested, which said "Do you have a pending follow
request for this user?". It turns out that means _you_ have requested
to follow _them_, not the other way round.

The other way round is also represented in this record, as the
'requested_by' field (mirroring followed and followed_by). Apparently
it's been in the server code for over a year, but accidentally left
out of the documentation until last month.
src/text.rs
src/types.rs