Keep ostatus id as activity id.
[akkoma] / lib / pleroma / web / ostatus / ostatus.ex
index 9f85d971a621dda73aeafd86bce60634d6be1e2f..f8e33bc7e220aa27d6026596a28bb977c4b746b9 100644 (file)
@@ -63,6 +63,7 @@ defmodule Pleroma.Web.OStatus do
     to = to ++ mentions
 
     date = string_from_xpath("/entry/published", entry)
+    id = string_from_xpath("/entry/id", entry)
 
     object = %{
       "type" => "Note",
@@ -81,7 +82,7 @@ defmodule Pleroma.Web.OStatus do
       object
     end
 
-    ActivityPub.create(to, actor, context, object, %{}, date)
+    ActivityPub.create(to, actor, context, object, %{"id" => id}, date)
   end
 
   def find_or_make_user(uri) do