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
8ae13d94
Commit
8ae13d94
authored
May 01, 2017
by
lain
Browse files
Use empty context id if we get none
Thanks mastodon.
parent
aa209414
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/ostatus/ostatus.ex
View file @
8ae13d94
...
...
@@ -45,7 +45,7 @@ def handle_note(entry, doc \\ nil) do
uri
=
string_from_xpath
(
"/entry/author/uri[1]"
,
entry
)
||
string_from_xpath
(
"/feed/author/uri[1]"
,
doc
)
{
:ok
,
actor
}
=
find_or_make_user
(
uri
)
context
=
string_from_xpath
(
"/entry/ostatus:conversation[1]"
,
entry
)
|>
String
.
trim
context
=
(
string_from_xpath
(
"/entry/ostatus:conversation[1]"
,
entry
)
||
""
)
|>
String
.
trim
context
=
if
String
.
length
(
context
)
>
0
do
context
else
...
...
Write
Preview
Markdown
is supported
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