don't persist undo of follows #149
2 changed files with 4 additions and 2 deletions
|
@ -350,8 +350,7 @@ defp do_unfollow(follower, followed, activity_id, false) do
|
|||
{:ok, activity} <- Repo.delete(follow_activity),
|
||||
unfollow_data <- make_unfollow_data(follower, followed, follow_activity, activity_id),
|
||||
unfollow_activity <- remote_unfollow_data(unfollow_data),
|
||||
_ <- notify_and_stream(unfollow_activity)
|
||||
do
|
||||
_ <- notify_and_stream(unfollow_activity) do
|
||||
{:ok, activity}
|
||||
else
|
||||
nil -> nil
|
||||
|
@ -361,6 +360,7 @@ defp do_unfollow(follower, followed, activity_id, false) do
|
|||
|
||||
defp remote_unfollow_data(data) do
|
||||
{recipients, _, _} = get_recipients(data)
|
||||
|
||||
%Activity{
|
||||
data: data,
|
||||
local: false,
|
||||
|
|
|
@ -12,6 +12,7 @@ def up do
|
|||
AND
|
||||
local = false;
|
||||
"""
|
||||
|
||||
execute(statement)
|
||||
|
||||
statement = """
|
||||
|
@ -24,6 +25,7 @@ def up do
|
|||
AND
|
||||
local = false;
|
||||
"""
|
||||
|
||||
execute(statement)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue