diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-03-23 01:17:26 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-03-23 01:17:26 +0000 |
commit | e430a71d373a15b105a52771551b0ec4ed436ba4 (patch) | |
tree | 1421b1d2a55eadd83ef9dbc68fba5706cd05fbe4 /lib | |
parent | 73efe95368dfc910c965e4025f47b36b6eb37aaa (diff) | |
download | pleroma-e430a71d373a15b105a52771551b0ec4ed436ba4.tar.gz |
ostatus: fetch preloaded object in note handler for testsuite
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/ostatus/handlers/note_handler.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/ostatus/handlers/note_handler.ex b/lib/pleroma/web/ostatus/handlers/note_handler.ex index 770a71a0a..db995ec77 100644 --- a/lib/pleroma/web/ostatus/handlers/note_handler.ex +++ b/lib/pleroma/web/ostatus/handlers/note_handler.ex @@ -106,7 +106,7 @@ defmodule Pleroma.Web.OStatus.NoteHandler do # TODO: Clean this up a bit. def handle_note(entry, doc \\ nil) do with id <- XML.string_from_xpath("//id", entry), - activity when is_nil(activity) <- Activity.get_create_by_object_ap_id(id), + activity when is_nil(activity) <- Activity.get_create_by_object_ap_id_with_object(id), [author] <- :xmerl_xpath.string('//author[1]', doc), {:ok, actor} <- OStatus.find_make_or_update_user(author), content_html <- OStatus.get_content(entry), |