Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma into develop

This commit is contained in:
Roger Braun 2017-05-08 19:35:16 +02:00
commit 8f9c43343e
3 changed files with 131 additions and 4 deletions

View file

@ -176,7 +176,7 @@ defmodule Pleroma.Web.OStatus do
# TODO: Bail out sooner and use transaction.
if Object.get_by_ap_id(id) do
{:error, "duplicate activity"}
{:ok, Activity.get_create_activity_by_object_ap_id(id)}
else
ActivityPub.create(to, actor, context, object, %{}, date, false)
end