Fix fix_explicit_addressing moving follower collection to cc and add tests for it

This commit is contained in:
rinpatch 2019-05-31 14:17:05 +03:00
commit a9eaa55885
2 changed files with 44 additions and 1 deletions

View file

@ -93,7 +93,10 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
object
|> Utils.determine_explicit_mentions()
explicit_mentions = explicit_mentions ++ ["https://www.w3.org/ns/activitystreams#Public"]
follower_collection = User.get_cached_by_ap_id(Containment.get_actor(object)).follower_address
explicit_mentions =
explicit_mentions ++ ["https://www.w3.org/ns/activitystreams#Public", follower_collection]
object
|> fix_explicit_addressing(explicit_mentions)