stefan,
@stefan@stefanbohacek.online avatar

Is there a more efficient way to check if two accounts follow each other via Mastodon's API, other than fetching followers of both accounts and finding a match?

#MastoDev #development #api

cshentrup,
@cshentrup@mastodon.social avatar

@stefan Well you could hack into their accounts and check right?

stefan,
@stefan@stefanbohacek.online avatar

@cshentrup True, saving that as plan B!

miblo,
@miblo@mas.to avatar

@stefan Fairly sure there wasn't (for two accounts other than our own) when I looked into it a bit ago. But it you want "do I and this other person or people follow each other?", I'm pretty sure that's how /accounts/relationships works:

https://docs.joinmastodon.org/methods/accounts/#relationships

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • thenastyranch
  • cubers
  • Youngstown
  • ethstaker
  • slotface
  • mdbf
  • rosin
  • Durango
  • kavyap
  • GTA5RPClips
  • khanakhh
  • JUstTest
  • tacticalgear
  • ngwrru68w68
  • cisconetworking
  • modclub
  • everett
  • osvaldo12
  • normalnudes
  • provamag3
  • anitta
  • tester
  • Leos
  • megavids
  • lostlight
  • All magazines