From 7e388e697d6088fbc705ca523fc454b4392b64ac Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 2 Jun 2015 13:55:13 +0200 Subject: [PATCH] fallback to local URL if reply->getUrl() is missing Remote Activity notices generally don't have a proper HTTP URL associated. --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }