object: return the deleted object as well

This commit is contained in:
William Pitcock 2018-11-01 07:47:50 +00:00
commit 10f3958468
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ defmodule Pleroma.Object do
with Repo.delete(object),
Repo.delete_all(Activity.all_non_create_by_object_ap_id_q(id)),
{:ok, true} <- Cachex.del(:user_cache, "object:#{id}") do
:ok
{:ok, object}
end
end
end