diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-20 10:44:57 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-20 10:44:57 +0200 |
commit | 1085675ec41702b6e6416ae9f905905466228c01 (patch) | |
tree | b77f0a310c8eb371b4ca149864acbb0cbe2cae90 /lib | |
parent | 9d97be441396e0b8857e52c7b3ff0105f3c635ea (diff) | |
download | pleroma-1085675ec41702b6e6416ae9f905905466228c01.tar.gz |
Output ref instead of href for conversation.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/ostatus/activity_representer.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/ostatus/activity_representer.ex b/lib/pleroma/web/ostatus/activity_representer.ex index ccf71218c..85140282c 100644 --- a/lib/pleroma/web/ostatus/activity_representer.ex +++ b/lib/pleroma/web/ostatus/activity_representer.ex @@ -54,7 +54,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do {:published, h.(inserted_at)}, {:updated, h.(updated_at)}, {:"ostatus:conversation", [], h.(activity.data["context"])}, - {:link, [href: h.(activity.data["context"]), rel: 'ostatus:conversation'], []}, + {:link, [ref: h.(activity.data["context"]), rel: 'ostatus:conversation'], []}, {:link, [type: ['application/atom+xml'], href: h.(activity.data["object"]["id"]), rel: 'self'], []} ] ++ categories ++ attachments ++ in_reply_to ++ author ++ mentions end @@ -83,7 +83,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do {:id, h.(activity.data["object"])}, # For notes, federate the object id. ]}, {:"ostatus:conversation", [], h.(activity.data["context"])}, - {:link, [href: h.(activity.data["context"]), rel: 'ostatus:conversation'], []}, + {:link, [ref: h.(activity.data["context"]), rel: 'ostatus:conversation'], []}, {:link, [rel: 'self', type: ['application/atom+xml'], href: h.(activity.data["id"])], []}, {:"thr:in-reply-to", [ref: to_charlist(activity.data["object"])], []} ] ++ author ++ mentions @@ -115,7 +115,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do {:published, h.(inserted_at)}, {:updated, h.(updated_at)}, {:"ostatus:conversation", [], h.(activity.data["context"])}, - {:link, [href: h.(activity.data["context"]), rel: 'ostatus:conversation'], []}, + {:link, [ref: h.(activity.data["context"]), rel: 'ostatus:conversation'], []}, {:link, [rel: 'self', type: ['application/atom+xml'], href: h.(activity.data["id"])], []}, {:"activity:object", retweeted_xml} ] ++ mentions ++ author |