federator: publisher: only attempt publishing if we know the activity is representable
[akkoma] / lib / pleroma / gopher / server.ex
index 2ebc5d5f7a8ebc306d34904f2c97b4f2a2a95ff4..1d2e0785c4e8d8c44f752c3cab572e440a349d4c 100644 (file)
@@ -76,7 +76,7 @@ defmodule Pleroma.Gopher.Server.ProtocolHandler do
     |> Enum.map(fn activity ->
       user = User.get_cached_by_ap_id(activity.data["actor"])
 
-      object = Object.normalize(activity.data["object"])
+      object = Object.normalize(activity)
       like_count = object["like_count"] || 0
       announcement_count = object["announcement_count"] || 0