Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma into develop
This commit is contained in:
commit
8f9c43343e
3 changed files with 131 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue