Add federation for unrepeats
This commit is contained in:
parent
c9e7b984d5
commit
0251690e96
2 changed files with 6 additions and 4 deletions
|
|
@ -283,15 +283,15 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
|||
"""
|
||||
def make_unannounce_data(
|
||||
%User{ap_id: ap_id} = user,
|
||||
%Object{data: %{"id" => id}} = object
|
||||
%Activity{data: %{"id" => id, "context" => context}} = activity
|
||||
) do
|
||||
%{
|
||||
"type" => "Undo",
|
||||
"actor" => ap_id,
|
||||
"object" => id,
|
||||
"to" => [user.follower_address, object.data["actor"]],
|
||||
"to" => [user.follower_address, activity.data["actor"]],
|
||||
"cc" => ["https://www.w3.org/ns/activitystreams#Public"],
|
||||
"context" => object.data["context"]
|
||||
"context" => context
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue