Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
e430a71d
Commit
e430a71d
authored
Mar 23, 2019
by
kaniini
Browse files
ostatus: fetch preloaded object in note handler for testsuite
parent
73efe953
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/ostatus/handlers/note_handler.ex
View file @
e430a71d
...
...
@@ -106,7 +106,7 @@ def fetch_replied_to_activity(entry, in_reply_to) 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
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment