Merge branch 'fix/put-repeats-at-activitypub-outbox' into 'develop'
[akkoma] / lib / pleroma / web / ostatus / activity_representer.ex
index 4179d86c9b354adb1501c5de6d3cae3a6a805183..5d831459b9e247e546573d496b43cbf8277321d4 100644 (file)
@@ -246,7 +246,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
     author = if with_author, do: [{:author, UserRepresenter.to_simple_form(user)}], else: []
 
     mentions = (activity.recipients || []) |> get_mentions
-    follow_activity = Activity.get_by_ap_id(follow_activity["id"])
+    follow_activity = Activity.normalize(follow_activity)
 
     [
       {:"activity:object-type", ['http://activitystrea.ms/schema/1.0/activity']},