don't persist undo of follows #149

Merged
floatingghost merged 5 commits from follow-undo-persistance into develop 2022-08-05 13:28:56 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit ac895af657 - Show all commits

View file

@ -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,

View file

@ -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