From: Roger Braun Date: Sat, 22 Apr 2017 10:08:20 +0000 (+0200) Subject: Add outgoin federation to twitter api. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a2b79ce7d14060f643439bc95be4eded399b05c2;p=akkoma Add outgoin federation to twitter api. Doesn't really belong there, find a different place for it. Should federate on every activity insertion. --- diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 1053120c4..0f84cffbd 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -66,7 +66,9 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do end 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