Add outgoin federation to twitter api.
Doesn't really belong there, find a different place for it. Should federate on every activity insertion.
This commit is contained in:
parent
77cb260628
commit
a2b79ce7d1
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
||||||
end
|
end
|
||||||
|
|
||||||
with {:ok, activity} <- ActivityPub.insert(activity) do
|
with {:ok, activity} <- ActivityPub.insert(activity) do
|
||||||
add_conversation_id(activity)
|
{:ok, activity} = add_conversation_id(activity)
|
||||||
|
Pleroma.Web.Websub.publish(Pleroma.Web.OStatus.feed_path(user), user, activity)
|
||||||
|
{:ok, activity}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue