Post could be both in direct messages and unlisted available in profile
Environment
- Installation type (OTP or From Source): From Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): Latest pleroma stable
Bug description
I am developing an RSS-to-ActivityPub converter which is based on Darius'work. Source code at https://github.com/umonaca/rss-to-activitypub. It's a custom ActivityPub server that sends out posts to the followers of an actor in unlisted
visiblity.
There is a recent bug causing a single post to appear in both direct messages and main timeline & user profile as unlisted on Pleroma. I fixed it on my side but I think it should be fixed in Pleroma as well, because a single post should not be unlisted
and showing in Direct Messages at the same time.
Related posts:
- https://counter.fedi.live/objects/e23c59fd-f161-402a-a27d-e616e7b02bd5
- https://jabberwocky.moe/@alice/105394940536949688
Before I fixed the bug, my server is sending out posts with payload like:
to: ['https://counter.fedi.live/users/realcaseyrollins'],
cc: 'https://www.w3.org/ns/activitystreams#Public'
I fixed it by changing the To
field to followers collection and enclosing cc
field with square brackets (not sure if the later change is relevant):
to: [`https://${domain}/u/${name}/followers`],
cc: ['https://www.w3.org/ns/activitystreams#Public']
I know that I should be using the followers collection, but perhaps Pleroma should be expecting an irregular payload from remote servers. It is not triggering any issue on other ActivityPub compatible platforms, such as Misskey or Mastodon.