Email or username:

Password:

Forgot your password?
Top-level
Gregory

@sl007 @humanetech Actually, attributedTo seems to be the standard way to represent group admins/moderators at this point — except Lemmy returns them as an array of IDs instead of objects. Added support for that because why not. Here's how it looks now.

4 comments
Sebastian Lasse, redaktor.me

@grishka @humanetech

Returning them as an array is correct cause it can be multiple.
Doing the same, see e.g. in the client github.com/redaktor/widgets-pr

Having also support for an array of IDs (as long it is an URL.protocol I can deal with) cause it is specified as being valid.
“Range: Link | Object”
see also Example 68
w3.org/TR/activitystreams-voca

Sebastian Lasse, redaktor.me

@grishka @humanetech

Additionally the array would then only need a .filter for the Actor type because

“The attributed entities might not be Actors. For instance, an object might be attributed to the completion of another activity.”

Gregory

@sl007 @humanetech I already do this exact thing (User extends Actor, groups can't be admins in groups)

This universal object dependency resolving I recently wrote simplified my code so much :)

Sebastian Lasse, redaktor.me

@grishka @humanetech

Very nice!
No doubt that e.g. redaktor and smithereen will work perfectly together!

Go Up