How to implement "suggest"?
I'm currently implementing AP for Friendica. Some things are unclear.
One more thing is the "suggest" message. We can suggest contacts to other users, just like: "Here is some interesting user, you might want to follow". This message contains the suggested profile url and additionally a note where we can add some information.
Is this possible in AP?
Announce, maybe?
We would need to be able to add some note to this.
Edit: But "announce" sounds possible.
Announces can have a content property.
So I think something like:
{
"type": "Announce",
"actor": "https://example.net/suggester",
"object": "https://example.net/user-suggested",
"content": "Look at this cool person!"
}
is probably a good starting point.
Sounds good, thanks!
I've been suggested to use the Offer activity:
https://socialhub.activitypub.rocks/t/idea-for-a-new-suggest-activity/328
There are a few types that can work here - Announce, Offer, or Invite. I think @trwnh has some good suggestions in the linked SH discussion.
I also think that it may make sense to develop a FEP for this discussion, and even consider an extension type, like Suggest. Getting the semantics and connotations just right should be documented.