diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-11-02 18:55:16 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-11-02 18:55:16 +0000 |
commit | f028647ac0120f31af820a6b490598173c46a840 (patch) | |
tree | f7bc08dd40f51b6e9466a66ecc25cec44a10e6ea /lib | |
parent | f114f843248d207ff240b018a774ce32c34b6eaf (diff) | |
parent | 45ebc8dd9a27ae862aad1c8251a71b95a2c3be17 (diff) | |
download | pleroma-f028647ac0120f31af820a6b490598173c46a840.tar.gz |
Merge branch 'bugfix/dont-break-on-empty-in-reply-to' into 'develop'
Check for empty string in_reply_to ids.
Closes #355
See merge request pleroma/pleroma!417
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 2a5a2cc15..b22c4cc03 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -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 |