diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-04-30 09:25:46 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-04-30 09:25:46 +0200 |
commit | 8a0d2b33d8c9a1cef347c5daf5589a2245eb01b0 (patch) | |
tree | b6310d12272994b41a4284baf030d3f17f5d13ca /lib/pleroma | |
parent | a16da387d251edc4d1bae949146c807d217cee1f (diff) | |
download | pleroma-8a0d2b33d8c9a1cef347c5daf5589a2245eb01b0.tar.gz |
Keep ostatus id as activity id.
Diffstat (limited to 'lib/pleroma')
-rw-r--r-- | lib/pleroma/web/ostatus/ostatus.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/ostatus/ostatus.ex b/lib/pleroma/web/ostatus/ostatus.ex index 9f85d971a..f8e33bc7e 100644 --- a/lib/pleroma/web/ostatus/ostatus.ex +++ b/lib/pleroma/web/ostatus/ostatus.ex @@ -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 |