Had a look at the logs and trying to resolve a video fails with OnlyModsCanPostInCommunity. This is because PeerTube sets lemmy:postingRestrictedToMods to be true on the Group, but doesn’t set an attributeTo for the Group object so Lemmy sees the community as having no moderators. It seems that the only reason this used to work was because the posting_restricted_to_mods setting was ignored when resolving an object from ActivityPub.
Looks like I was wrong, PeerTube does set an attributeTo, it’s just different to how Lemmy does it. Lemmy expects an OrderedCollection, while PeerTube sends an Array of IDs. Don’t know how I missed the attributeTo in the PeerTube output I was looking at (I was pretty tired when I wrote the tbf). This is probably something to fix in Lemmy.
Emperor@feddit.uk 2 weeks ago
This is beyond my remit, so I’m tagging @flamingos@feddit.uk.
flamingos@feddit.uk 2 weeks ago
Had a look at the logs and trying to resolve a video fails with
OnlyModsCanPostInCommunity
. This is because PeerTube setslemmy:postingRestrictedToMods
to be true on theGroup
, but doesn’t set anattributeTo
for theGroup
object so Lemmy sees the community as having no moderators. It seems that the only reason this used to work was because theposting_restricted_to_mods
setting was ignored when resolving an object from ActivityPub.cc @s08nlql9@lemm.ee
Emperor@feddit.uk 2 weeks ago
Thanks for checking. Seems like a “them” problem.
s08nlql9@lemm.ee 2 weeks ago
Sorry if i don’t understand this on the technical level but if we want peertube videos to show in lemmy, we should ask the Lemmy devs to re-enable it?
flamingos@feddit.uk 2 weeks ago
Looks like I was wrong, PeerTube does set an
attributeTo
, it’s just different to how Lemmy does it. Lemmy expects anOrderedCollection
, while PeerTube sends an Array ofIDs
. Don’t know how I missed theattributeTo
in the PeerTube output I was looking at (I was pretty tired when I wrote the tbf). This is probably something to fix in Lemmy.cc @emperor@feddit.uk