From: Mikael Nordfeldth Date: Tue, 2 Jun 2015 11:55:13 +0000 (+0200) Subject: fallback to local URL if reply->getUrl() is missing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e388e697d6088fbc705ca523fc454b4392b64ac;p=quix0rs-gnu-social.git fallback to local URL if reply->getUrl() is missing Remote Activity notices generally don't have a proper HTTP URL associated. --- diff --git a/classes/Notice.php b/classes/Notice.php index 49c6801ae7..500ea31c97 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1851,7 +1851,7 @@ class Notice extends Managed_DataObject try { $reply = $this->getParent(); $ctx->replyToID = $reply->getUri(); - $ctx->replyToUrl = $reply->getUrl(); + $ctx->replyToUrl = $reply->getUrl(true); // true for fallback to local URL, less messy } catch (NoParentNoticeException $e) { // This is not a reply to something }