Followers OrderedCollectionPage example

Hello.

Is there any example of what should be in this output?

While working on the project, I created a controller that looked something like this:

{
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "OrderedCollectionPage",
    "partOf": "https://cool.site/activitypub/users/adam/followers?offset=0",
    "id": "https://cool.site/activitypub/users/adam/followers",
    "actor": "https://cool.site/activitypub/users/adam",
    "next": "https://cool.site/activitypub/users/adam/followers?limit=25&offset=0",
    "orderedItems": [
        "https://mastodon.social/users/alice",
        "https://mastodon.social/users/bob",
        "https://mastodon.social/users/cindy"
    ],
    "totalItems": 3
}

But on the Mastodon instance, only the number of followers is displayed, but not a list.

When I click on the Followers tab, I get this error: This user has chosen not to make this information available

There are no errors in the server logs. Access to the link https://cool.site/activitypub/users/adam/followers is not denied.

Could this be an error in the “orderedItems” section of the output?

Thanks in advance.

first, a few (unrelated?) issues with your serialization:

  • reverse id and partOf – conceptually it’s weird that your page is adam/followers but it’s partOf adam/followers?offset=0; this should probably be reversed, so that the OrderedCollection is adam/followers and the first OrderedCollectionPage is adam/followers?offset=0.
  • maybe remove next – i don’t know if there are any items in the next page, but it looks like there might not be. i see only 3 items here but a limit of 25. similarly, is the totalItems: 3 for the whole collection or just this page? in any case if the next page is empty then you should omit the next link/property
  • remove actor – actor is only valid on an Activity. for a normal Object you should be using attributedTo. but for a followers collection page, the server owns it, not the actor.

second, a question:

  • are those three accounts actually following you on mastodon.social’s side? did they send a Follow and did you send back an Accept? generally, you can’t just claim that anyone is following you; mastodon and other software will use its local followers list that it can verify for itself, not the remote followers list which cannot be verified.
1 Like

Thanks for reply!

Fixed.

That’s right. In Mastodon, followers see an “Unfollow” button.
Followers receive incoming posts from my server (outbox) and can send replies (inbox).
However, the Followers list is empty :man_shrugging:

Perhaps you need to implement followers synchronization? There was a similar discussion several days ago:

1 Like

FWIW, I set up synchronization and it hasn’t made a difference.

1 Like

Am I right in understanding that implementing ‘Follower synchronization mechanism’ will not solve the problem?

I just started working on it, but I haven’t tested it yet, because the work is not finished yet.

I’m saying it didn’t work for me. Mind you, I’m not sure if it’s possible to force Mastodon to recheck your followers.

1 Like

Okay. I’ll try and then let you know the test results. Thank you.

Confirm. The implementation of ‘FEP-8fcf: Followers collection synchronization across servers’ doesn’t work.

The account on the Mastodon instance displays the correct number of followers, but when you click on the “Followers” tab, the list is empty