Apply suggestion to lib/pleroma/web/activity_pub/pipeline.ex

This commit is contained in:
lain 2020-03-26 14:45:28 +00:00
parent d7aa0b645b
commit 69fc1dd69f
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ def common_pipeline(object, meta) do
{_, {:ok, _}} <- {:federation, maybe_federate(activity, meta)} do
{:ok, activity, meta}
else
{:mrf_object, {:reject, _}} -> {:ok, nil, meta}
e -> {:error, e}
end
end