# Standardizing on ActivityPub Groups

**URL:** <https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984>\
**Category:** ActivityPub\
**Tags:** fep\
**Created:** [August 11, 2021, 3:43am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984 "2021-08-11T03:43:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dansup](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/dansup/32/129_2.png) [@dansup](https://socialhub.activitypub.rocks/u/dansup)\
**Post date:** [August 11, 2021, 3:43am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/1 "2021-08-11T03:43:20Z")

</div>

Hello everyone!

We are adding federated Group support to Pixelfed! Going to be reaching out to a few projects to see if we can make our implementations compatible.

Advice and feedback is greatly appreciated!

 ![Screen Shot 2021-08-10 at 9.10.29 PM](https://socialhub.activitypub.rocks/uploads/default/original/2X/6/614dc03dd90b0a7d0c339ad459b1c3bfab5da472.jpeg)

 ![Screen Shot 2021-08-10 at 9.22.59 PM](https://socialhub.activitypub.rocks/uploads/default/original/2X/e/eaa0b076f1e2ae9703791e07d1aa9bc51b192ed4.jpeg)

---

<div class="post-metadata">

**Author:** ![aschrijver](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/aschrijver/32/278_2.png) [@aschrijver](https://socialhub.activitypub.rocks/u/aschrijver)\
**Post date:** [August 11, 2021, 5:23am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/2 "2021-08-11T05:23:12Z")

</div>

Some input scraped from this forum..

@Sebastian in the past has created a ‘group topic’ 😉 that groups prior group discussions: [How to use Groups](https://socialhub.activitypub.rocks/t/how-to-use-groups/1005)

The ongoing groups implementation discussion was recently picked up by @macgirvin for implementation in #Software > Zap based on @grishka’s FEP draft. See [Groups implementation - #70 by macgirvin](https://socialhub.activitypub.rocks/t/groups-implementation/591/70)

Unburdened by lotsa AP expertise I am broaching the subject of [Standardizing on a common Community domain as AP extension?](https://socialhub.activitypub.rocks/t/standardizing-on-a-common-community-domain-as-ap-extension/1353) Community is something I need in the future, also based on groups, and imho valuable for fedi as a whole. I haven’t deep-dived the subject yet, nor analysed all existing group implementations.

In my - most possibly naive - view I consider a community network to consist of _“Groups that maintain a Collection of Relationships to other Actors”_.

 ![activitypub-community-extension](https://socialhub.activitypub.rocks/uploads/default/original/2X/d/d3ea28614d7cec2a9ff90a9486116d6db99be15e.png)

- A Group (the Community) maintains a collection of Relationships to other Actors.
- The [`relationship`](https://www.w3.org/TR/activitystreams-vocabulary/#connections) property describes the nature of the relationship to the Community.
- There can be multiple relationships to the same actor. Some types can be standardized, others custom / app-specific. An example of a standardized relationship vocabulary is PURL’s [https://vocab.org/relationship](https://vocab.org/relationship/), but there are more.

---

<div class="post-metadata">

**Author:** ![weex](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/weex/32/1434_2.png) [@weex](https://socialhub.activitypub.rocks/u/weex)\
**Post date:** [August 11, 2021, 5:36am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/3 "2021-08-11T05:36:13Z")

</div>

In my review of issue trackers in the fedi groups comee up pretty often so I think users will be pleased to see it in any form.

It would be pretty interesting to see some kind of multisignature scheme used to delegate or share group administration, but even having instance-local groups (where that wouldn’t be necessary) would provide a ton of value.

---

<div class="post-metadata">

**Author:** ![heluecht](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/heluecht/32/195_2.png) [@heluecht](https://socialhub.activitypub.rocks/u/heluecht)\
**Post date:** [August 11, 2021, 5:41am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/4 "2021-08-11T05:41:44Z")

</div>

If you need more details about how Friendica is doing it, just reach out to me. In Friendica the group account just is performing an announce to the group members for all content that is directed to the group.

---

<div class="post-metadata">

**Author:** ![Sebastian](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/sebastian/32/38_2.png) [@Sebastian](https://socialhub.activitypub.rocks/u/Sebastian)\
**Post date:** [August 11, 2021, 6:22am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/5 "2021-08-11T06:22:41Z")

</div>

Well, this is then a relay like in

> [@Guppe Groups: a new ActivityPub app for decentralized social groups](https://socialhub.activitypub.rocks/t/guppe-groups-a-new-activitypub-app-for-decentralized-social-groups/408):
>
> I started learning ActivityPub for a project I want to do with WebVR, and realized the social groups functionality I’d been craving in the fediverse would be dead simple to implement with a server-to-server app. Now I have Guppe Groups up and running. It really just does two things: Create new group actors on demand whenever they are searched or tagged When receiving an activity to an inbox, announce it This creates actors whose outboxes serve as group activity timelines that people can foll…

while the Conf session and these posts are more about group based communication  
[as in Arnolds graph too, the Group would probably have some more collections like an Inbox (for public group posts)]

> [@Groups implementation](https://socialhub.activitypub.rocks/t/groups-implementation/591):
>
> I’ve implemented groups in [Tavern](https://gitlab.com/ngerakines/tavern) and would like feedback and comments. All of the group specific actor and activity behavior is documented in [https://gitlab.com/ngerakines/tavern/-/blob/issue-21-groups/FEDERATION.md](https://gitlab.com/ngerakines/tavern/-/blob/issue-21-groups/FEDERATION.md) as well. Groups share the same namespace as users and it is up to instance operators to moderate how that namespace is managed. For example, both @sneakerheads@groups.tavern.town, @sneakerheads-group@tavern.town, and @sneakerheads@tavern.town are all valid names. I’m considering ad…

and

> [@Let's discuss groups](https://socialhub.activitypub.rocks/t/lets-discuss-groups/519):
>
> There will be a moment when I’ll have groups. And then there will be a moment when I’ll have to federate these. There seems to be no consensus on what groups actually are and how to represent them. So, Group members. How are those represented? Are they the followers collection? Can a group have followers at all? Or should it be a separate, custom collection a-la Mastodon’s pinned toots? Since it’s a collection of actors anyway, can groups be members of groups? This feels weird to think about…

---

<div class="post-metadata">

**Author:** ![Sebastian](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/sebastian/32/38_2.png) [@Sebastian](https://socialhub.activitypub.rocks/u/Sebastian)\
**Post date:** [August 11, 2021, 6:34am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/6 "2021-08-11T06:34:39Z")

</div>

And btw, relays come with pitfalls, for example if a group can follow other groups, extra care is needed:

If a relay follows a poorly-written relay and is announcing a message, the poorly-written relay announces it back to its members including the other relay which is doing it again and vice-versa and again and …  
Although which reminds me of a fellow student at HGB Leipzig who did his diploma in Medienkunst by demonstrating live how to take the Uni Leipzigs mailserver down by infinite bouncing.  
He got the best grade you can get 🙂

---

<div class="post-metadata">

**Author:** ![grishka](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/grishka/32/196_2.png) [@grishka](https://socialhub.activitypub.rocks/u/grishka)\
**Post date:** [August 11, 2021, 12:42pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/7 "2021-08-11T12:42:48Z")

</div>

The huge UX problem with relays, whether built into AP servers or just Mastodon bots [like this one](https://mastodon.ml/@rf), is that you still have to post to your followers first. You can’t post straight to the group without polluting your followers’ feeds. That’s what my FEP aims to solve first and foremost.

---

<div class="post-metadata">

**Author:** ![heluecht](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/heluecht/32/195_2.png) [@heluecht](https://socialhub.activitypub.rocks/u/heluecht)\
**Post date:** [August 11, 2021, 1:28pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/8 "2021-08-11T13:28:04Z")

</div>

In Friendica we solve this with addressing the group via `!` instead of `@`. This means that only the group is targetted but the post is still public.

---

<div class="post-metadata">

**Author:** ![grishka](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/grishka/32/196_2.png) [@grishka](https://socialhub.activitypub.rocks/u/grishka)\
**Post date:** [August 11, 2021, 1:46pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/9 "2021-08-11T13:46:11Z")

</div>

Okay, I looked at how it’s done in Friendica ([here](https://forum.friendi.ca/profile/developers/status)). It’s basically the same as what I do in terms of not addressing to followers, except Announce instead of Add and it’s not possible to reliably tell that this post is to the group wall when you only have the post.

(also, you can easily see when something is written in PHP because you get `\/` instead of `/` in JSON lol)

---

<div class="post-metadata">

**Author:** ![nightpool](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/nightpool/32/36_2.png) [@nightpool](https://socialhub.activitypub.rocks/u/nightpool)\
**Post date:** [August 11, 2021, 2:10pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/10 "2021-08-11T14:10:43Z")

</div>

> [@grishka](#):
>
> and it’s not possible to reliably tell that this post is to the group wall when you only have the post.

doesn’t simply not including the `followers` collection (and explicitly targeting the group’s followers, I assume?) indicate that this is a group post?

---

<div class="post-metadata">

**Author:** ![grishka](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/grishka/32/196_2.png) [@grishka](https://socialhub.activitypub.rocks/u/grishka)\
**Post date:** [August 11, 2021, 2:16pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/11 "2021-08-11T14:16:54Z")

</div>

No. I tried this approach myself some time ago. Didn’t like this whole idea of guessing where the post belongs by its addressing, hence the FEP and the `target` field to specify it explicitly.

Besides, when you start taking into account more complex interactions like adding photos to albums in a group, or adding posts to topics, this gets insanely more confusing than just specifying the exact collection (together with its owner so it’s easier to look up on the receiving side).

---

<div class="post-metadata">

**Author:** ![macgirvin](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/m/82dd89/32.png) [@macgirvin](https://socialhub.activitypub.rocks/u/macgirvin)\
**Post date:** [August 11, 2021, 11:32pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/12 "2021-08-11T23:32:20Z")

</div>

An interesting little tidbit came up yesterday in a conversation with a Pleroma dev who is considering using ‘audience’ specifically for group targeting, as this was in fact an example shown in the ActivityStreams vocabulary document; albeit one that preceded ActivityPub and some if its unique requirements.

As an unpopular person here who was previously driven away from this forum because of my posts on this very issue: I will stay out of any decision making on this subject. I will only mention that if the solution doesn’t support post authors that restrict comments to their own followers, as well as private groups, and allows distributed moderation, and works across both conversational as well as microblog platforms; I’ll probably provide support for your mechanism but I’m still going to keep what we have now because it works today and meets all of those requirements.

I would highly encourage folks to consider supporting ‘replyTo’ (which works exactly like reply-to in email) to solve a number of “conversation vs. microblog” issues which came up during development of this feature over ActivityPub; and mention that the details of our current implementation are provided in the zap (dev) FEDERATION.md document. The copy in the release branch is a month or two out of date and we’ve made significant progress on cross-platform compatibility during that time.

I have nothing more to say on the subject.

---

<div class="post-metadata">

**Author:** ![aschrijver](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/aschrijver/32/278_2.png) [@aschrijver](https://socialhub.activitypub.rocks/u/aschrijver)\
**Post date:** [August 12, 2021, 6:46am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/13 "2021-08-12T06:46:51Z")

</div>

Since there are a number of people interested now in aligning on Group impls, maybe this is the time to collectively start work on a design doc, before we have yet another 50+ comment inconclusive thread. And then - later on - possibly turn it into a FEP. There’s already a bunch of Requirements to be listed, and some design choices already made.

This may start with a wiki post here, or a HedgeDoc in public.cat, or directly with a FEP markdown + open issues.

---

<div class="post-metadata">

**Author:** ![Sebastian](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/sebastian/32/38_2.png) [@Sebastian](https://socialhub.activitypub.rocks/u/Sebastian)\
**Post date:** [August 12, 2021, 7:34am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/14 "2021-08-12T07:34:21Z")

</div>

Full ack.  
I am proposing to start with a meeting, preferably in 2 days SAT or next FRI to kick it off.

About a collaborative doc: I organised a nextcloud running directly at [https://cloud.w3c.social/](https://cloud.w3c.social/) -  
maybe we should eat our own food and use it for collaboration which can federate …

Since the waiting list of topics for Social CG is so huge now, it would be nice if we also write a  
“Best practice for Client to Server” and talk about the supernice [guides](https://socialhub.activitypub.rocks/t/guide-for-new-activitypub-implementers/479) …

---

<div class="post-metadata">

**Author:** ![grishka](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/grishka/32/196_2.png) [@grishka](https://socialhub.activitypub.rocks/u/grishka)\
**Post date:** [August 12, 2021, 2:40pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/15 "2021-08-12T14:40:36Z")

</div>

> [@Sebastian](#):
>
> About a collaborative doc: I organised a nextcloud running directly at [https://cloud.w3c.social/](https://cloud.w3c.social/)

I don’t see a signup button 🤔

> [@Sebastian](#):
>
> maybe we should eat our own food and use it for collaboration which can federate …

Yeah what I said yesterday:

 ![image](https://socialhub.activitypub.rocks/uploads/default/original/2X/c/ccc384a3eb88d47799ff0c734f6b5c2c44168052.png)  
Except we can’t really make a group until we’ve agreed upon and implemented at least a minimally compatible federation protocol… So meta, much wow.

> [@macgirvin](#):
>
> I would highly encourage folks to consider supporting ‘replyTo’ (which works exactly like reply-to in email) to solve a number of “conversation vs. microblog” issues

The problem here is that this leaves us with two issues:

- How does a group exercise its authority? How does it reject a post from a user that’s blocked in it? How does moderation work?
- How does a group disseminate new posts to followers? Announce{Note} is a Mastodon-compatible way many use, there’s also Add{Note} which I’m pushing for as a universal “I hereby accept this object into my collection” activity. Replying to a group (or a photo album, or a collection) doesn’t provide an obvious, semantically sensible solution for this. Forwarding of LD-signed activities is nice but it’s best-effort kind of thing because of how hard LD-signatures are to implement correctly.

---

<div class="post-metadata">

**Author:** ![weex](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/weex/32/1434_2.png) [@weex](https://socialhub.activitypub.rocks/u/weex)\
**Post date:** [August 12, 2021, 10:56pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/16 "2021-08-12T22:56:53Z")

</div>

> [@grishka](#):
>
> How does a group exercise its authority? How does it reject a post from a user that’s blocked in it? How does moderation work?

From a cryptographic standpoint, it should be possible to store membership in an accumulator, a fixed-length value that can track membership of any number of public keys ([an implementation](https://github.com/etremel/crypto-accumulators)). To verify that you’re not dealing with an old state, there could be a revocation mechanism where admins of a group build a key revocation as they sign a new membership state.

> [@grishka](#):
>
> how hard LD-signatures are to implement correctly

How do you test this currently?

---

<div class="post-metadata">

**Author:** ![grishka](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/grishka/32/196_2.png) [@grishka](https://socialhub.activitypub.rocks/u/grishka)\
**Post date:** [August 12, 2021, 11:14pm UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/17 "2021-08-12T23:14:07Z")

</div>

> [@weex](#):
>
> From a cryptographic standpoint, it should be possible

No, let’s not involve any additional cryptography here. It’s merely a problem of state synchronization, where the instance that the group is on contains the authoritative state. Remember: treat ActivityPub like an API, this makes reasoning about it a whole lot easier. Your Create{Note} is an API call where you ask the group to add a post to its wall, group’s Add{Note} is its API call to its followers to update their cached states.

> [@weex](#):
>
> How do you test this currently?

Well, there’s a spec… And I have some test cases from Mastodon. Here’s a topic of mine where I discuss LD-signatures in detail:

> [@Making sense of RsaSignature2017](https://socialhub.activitypub.rocks/t/making-sense-of-rsasignature2017/347):
>
> All three of the most-popular AP-based servers (Mastodon, Pleroma, Misskey) use this type of signature in addition to HTTP signatures. These are used to sign the message itself, to allow it to be proxied by other instances to the instances yours doesn’t know about. Example: you follow Eugen on mastodon.social from your instance. His instance obviously sends you (and signs with HTTP signatures) his own posts and replies made by other users on mastodon.social. But if someone from another instance …

---

<div class="post-metadata">

**Author:** ![macgirvin](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/m/82dd89/32.png) [@macgirvin](https://socialhub.activitypub.rocks/u/macgirvin)\
**Post date:** [August 13, 2021, 5:04am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/18 "2021-08-13T05:04:05Z")

</div>

Fact check: Unless something changed recently Pleroma does not use LD-Signatures. This was the whole reason for the litepub ActivityPub fork. LD signatures are tedious to implement but not necessarily difficult. The real problem with LD signatures is they rely on availability and consistency of centralised external resources in order to validate; and also apply to the entire activity, making it impossible to encapsulate signed objects within other signed objects.

---

<div class="post-metadata">

**Author:** ![heluecht](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/heluecht/32/195_2.png) [@heluecht](https://socialhub.activitypub.rocks/u/heluecht)\
**Post date:** [August 13, 2021, 5:34am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/19 "2021-08-13T05:34:36Z")

</div>

Concerning the “centralised external resources”: To not depend on this we store the basic ones locally: [https://github.com/friendica/friendica/tree/develop/static](https://github.com/friendica/friendica/tree/develop/static)

---

<div class="post-metadata">

**Author:** ![macgirvin](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/m/82dd89/32.png) [@macgirvin](https://socialhub.activitypub.rocks/u/macgirvin)\
**Post date:** [August 13, 2021, 6:07am UTC](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984/20 "2021-08-13T06:07:14Z")

</div>

Ditto. I’m mentioning it because then you need to stay on top of updates that you will have forgotten were a dependency five years from now. We’'re currently caching them with a TTL of a week and falling back if the fetch failed. Then the only thing we need to concern ourselves with is malicious edits or unintentional deletions upstream. There was an attempt to provide versioning of the main AS schema to solve the problem for that particular resource but I couldn’t get the versioned schema to validate at all. I think it was an upstream server configuration; which only underscores the problem instead of solving it.

[Next page](https://socialhub.activitypub.rocks/t/standardizing-on-activitypub-groups/1984.md?page=2)
