activitypub icon indicating copy to clipboard operation
activitypub copied to clipboard

Permissions for posting to ActivityPub

Open nedjo opened this issue 6 years ago • 2 comments

The ability to post should be permission-based. Permissions similar to (modeled on) those for posting or editing content by type.

  • On install, assign sensible perms based on existing post perms. E.g. if role editor has create article content and ActivityPub is enabled for article content type, assign editor post article content to activitypub.

nedjo avatar Dec 21 '19 01:12 nedjo

I wonder if this is not redundant: as soon as you opt in the fediverse with #1, then anything that is configured as an activitypub thing automatically does what it is intented for.

There's also more than posting: follow, block, reply and many other type of actions in the fediverse world.

swentel avatar Dec 21 '19 14:12 swentel

I have the feeling I'm with @swentel on this one; at least as far as it goes in terms of 'Create', 'Update', 'Delete' and such Activities. They are activity stream notifications about objects that the user has the permission to create in Drupal (mappings like comment -> Note, page node -> Page, new node -> Article) for the object.

I could see a permission to remove activities that were created.

Then, yes, there is the rest of the Activity Types https://www.w3.org/TR/activitystreams-vocabulary/#activity-types I feel that there would need to be a way of making permissions for them, but how they would work requires thinking through (maybe just as they, if they, are implemented). My immediate thought jumps to creating an Invite for example. You may well want to restrict who could do that, but maybe it should be tied to the code that generates in Drupal, which won't be the base ActivityPub implementation, as it would be related to some event module.

ekes avatar Jan 11 '20 15:01 ekes