Add Actor Type and Discoverable preferences #4998

Closed
hakabahitoyo wants to merge 9 commits from gitlab-mr-iid-1616 into develop
Member

In Pleroma-FE: pleroma/pleroma-fe#2202.

This MR suggests to add 2 parameters type and discoverable in the ActivityPub Actor.

The type parameter has the values Application, Group, Organization, Person, and Service in the ActivityStream Standard. Mastodon only uses Person and Service, the Service is for the bot flag. Now Pleroma sends only Person.

The discoverable parameter is the opt-in signal which allows to show a user in the Mastodon's profile directory. Pleroma has not profile directory yet, but Mastodon's profile directory is showing federated (external) users. If a Pleroma user sends discoverable: true via ActivityPub, the user is shown in some Mastodon instance's profile directory.

In Pleroma-FE: https://git.pleroma.social/pleroma/pleroma-fe/pulls/2202. This MR suggests to add 2 parameters `type` and `discoverable` in the ActivityPub Actor. The `type` parameter has the values `Application`, `Group`, `Organization`, `Person`, and `Service` in the [ActivityStream Standard](https://www.w3.org/TR/activitystreams-vocabulary/#actor-types). Mastodon only uses `Person` and `Service`, the `Service` is for the _bot_ flag. Now Pleroma sends only `Person`. The `discoverable` parameter is the opt-in signal which allows to show a user in the Mastodon's _profile directory_. Pleroma has not profile directory yet, but [Mastodon's profile directory is showing federated (external) users](https://github.com/tootsuite/mastodon/pull/11688). If a Pleroma user sends `discoverable: true` via ActivityPub, the user is shown in some Mastodon instance's profile directory.
Member

what does the discoverable preference do, other than break federation with Mastodon? ;)

what does the discoverable preference do, other than break federation with Mastodon? ;)
Member

we should not use source_data outside of migrations, actor type should be parsed from remote users as well

we should not use `source_data` outside of migrations, actor type should be parsed from remote users as well
Member

Where did this come from and why is this needed? I don't see such property neither in mastodon responses nor in the specs

Where did this come from and why is this needed? I don't see such property neither in mastodon responses nor in the specs
Author
Member

This is a new feature of Mastodon which was merged into master on Aug 30. It is available in https://mastodon.social now. See also Mastodon's PR #11668.

This is a new feature of Mastodon which was merged into `master` on Aug 30. It is available in https://mastodon.social now. See also [Mastodon's PR #11668](https://github.com/tootsuite/mastodon/pull/11688).
Author
Member

If we send discoverable: true, the Mastodon's profile directory shows us via federation.

If we send `discoverable: true`, the Mastodon's _profile directory_ shows us via federation.
Author
Member

I'm closing this MR for focusing only discoverable parameter in #5023.

I'm closing this MR for focusing only `discoverable` parameter in #5023.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma!4998
No description provided.