import Ecto.Changeset
import Ecto.Query
+ require Pleroma.Constants
+
alias Pleroma.Activity
alias Pleroma.Bookmark
alias Pleroma.Repo
"id": "#{name}.json",
"type": "OrderedCollection",
"orderedItems": [
+
"""
)
end
opts =
%{}
|> Map.put(:type, ["Create", "Announce"])
- |> Map.put(:blocking_user, user)
- |> Map.put(:muting_user, user)
- |> Map.put(:reply_filtering_user, user)
- |> Map.put(:announce_filtering_user, user)
- |> Map.put(:user, user)
+ |> Map.put(:actor_id, user.ap_id)
- [[user.ap_id], User.following(user), Pleroma.List.memberships(user)]
+ [
+ [Pleroma.Constants.as_public(), user.ap_id],
+ User.following(user),
+ Pleroma.List.memberships(user)
+ ]
|> Enum.concat()
|> ActivityPub.fetch_activities_query(opts)
|> write(dir, "outbox", fn a ->