w3c / activitypub

http://w3c.github.io/activitypub/
Other
1.2k stars 77 forks source link

How to implement "suggest"? #323

Open annando opened 5 years ago

annando commented 5 years ago

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?

nightpool commented 5 years ago

Announce, maybe?

annando commented 5 years ago

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

Edit: But "announce" sounds possible.

nightpool commented 5 years ago

Announces can have a content property.

nightpool commented 5 years ago

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.

annando commented 5 years ago

Sounds good, thanks!

srosset81 commented 4 years ago

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

evanp commented 2 months ago

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.