aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-04-30 09:25:46 +0200
committerRoger Braun <roger@rogerbraun.net>2017-04-30 09:25:46 +0200
commit8a0d2b33d8c9a1cef347c5daf5589a2245eb01b0 (patch)
treeb6310d12272994b41a4284baf030d3f17f5d13ca /lib/pleroma
parenta16da387d251edc4d1bae949146c807d217cee1f (diff)
downloadpleroma-8a0d2b33d8c9a1cef347c5daf5589a2245eb01b0.tar.gz
Keep ostatus id as activity id.
Diffstat (limited to 'lib/pleroma')
-rw-r--r--lib/pleroma/web/ostatus/ostatus.ex3
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