mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
Use empty context id if we get none
Thanks mastodon.
This commit is contained in:
parent
aa20941416
commit
8ae13d94dc
|
@ -45,7 +45,7 @@ defmodule Pleroma.Web.OStatus 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
|
||||
|
|
Loading…
Reference in a new issue