Check for empty string in_reply_to ids.
This commit is contained in:
parent
f114f84324
commit
45ebc8dd9a
2 changed files with 17 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
|||
end
|
||||
end
|
||||
|
||||
def get_replied_to_activity(""), do: nil
|
||||
|
||||
def get_replied_to_activity(id) when not is_nil(id) do
|
||||
Repo.get(Activity, id)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue