diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-08-01 17:35:19 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-08-01 17:35:19 +0200 |
commit | 25c733f4022f171a69cff9badfa8d625a3ad5b6b (patch) | |
tree | ae1702dac3834a9272bf39e8dd5628ff7b9f917c /test | |
parent | f226f46a097b6b87a87ce1ead07383e8f83ad8ea (diff) | |
download | pleroma-25c733f4022f171a69cff9badfa8d625a3ad5b6b.tar.gz pleroma-25c733f4022f171a69cff9badfa8d625a3ad5b6b.zip |
Add href to in-reply-to.
THis should enable fetching from pleroma posts.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/ostatus/activity_representer_test.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/web/ostatus/activity_representer_test.exs b/test/web/ostatus/activity_representer_test.exs index 171a8bae7..0129e3758 100644 --- a/test/web/ostatus/activity_representer_test.exs +++ b/test/web/ostatus/activity_representer_test.exs @@ -58,6 +58,9 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do data = %{answer.data | "object" => object} answer = %{answer | data: data} + note_object = Object.get_by_ap_id(note.data["object"]["id"]) + Repo.update!(Object.change(note_object, %{ data: Map.put(note_object.data, "external_url", "someurl") })) + user = User.get_cached_by_ap_id(answer.data["actor"]) expected = """ @@ -73,7 +76,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do <link type="application/atom+xml" href="#{answer.data["object"]["id"]}" rel="self" /> <link type="text/html" href="#{answer.data["object"]["id"]}" rel="alternate" /> <category term="2hu"/> - <thr:in-reply-to ref="#{note.data["object"]["id"]}" /> + <thr:in-reply-to ref="#{note.data["object"]["id"]}" href="someurl" /> <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/> """ |