activitypub icon indicating copy to clipboard operation
activitypub copied to clipboard

How to implement "suggest"?

Open annando opened this issue 7 years ago • 7 comments

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?

annando avatar Oct 06 '18 15:10 annando

Announce, maybe?

nightpool avatar Oct 06 '18 15:10 nightpool

We would need to be able to add some note to this.

Edit: But "announce" sounds possible.

annando avatar Oct 06 '18 15:10 annando

Announces can have a content property.

nightpool avatar Oct 06 '18 15:10 nightpool

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.

nightpool avatar Oct 06 '18 15:10 nightpool

Sounds good, thanks!

annando avatar Oct 06 '18 15:10 annando

I've been suggested to use the Offer activity: https://socialhub.activitypub.rocks/t/idea-for-a-new-suggest-activity/328

srosset81 avatar Apr 02 '20 05:04 srosset81

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.

evanp avatar Jun 21 '24 16:06 evanp