Commit 8ae13d94 authored by lain's avatar lain
Browse files

Use empty context id if we get none

Thanks mastodon.
parent aa209414
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment