aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-11 09:32:03 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-11 09:32:03 +0200
commit2154f729b06becdfa65a1303d4a6a55d84bae1e7 (patch)
tree74c12b3a03ffbe2c9862de51e1d222d4208f5795
parent312772df7c7495b58724ad380e870dd4e2acf2d2 (diff)
downloadpleroma-2154f729b06becdfa65a1303d4a6a55d84bae1e7.tar.gz
Don't fetch if we don't even have a inReplyTo.
-rw-r--r--lib/pleroma/web/ostatus/ostatus.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/ostatus/ostatus.ex b/lib/pleroma/web/ostatus/ostatus.ex
index 9cd440493..5a1abe093 100644
--- a/lib/pleroma/web/ostatus/ostatus.ex
+++ b/lib/pleroma/web/ostatus/ostatus.ex
@@ -136,7 +136,7 @@ defmodule Pleroma.Web.OStatus do
{:ok, actor} = find_make_or_update_user(author)
inReplyTo = string_from_xpath("//thr:in-reply-to[1]/@ref", entry)
- if !Object.get_cached_by_ap_id(inReplyTo) do
+ if inReplyTo && !Object.get_cached_by_ap_id(inReplyTo) do
inReplyToHref = string_from_xpath("//thr:in-reply-to[1]/@href", entry)
if inReplyToHref do
fetch_activity_from_html_url(inReplyToHref)