]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fallback to local URL if reply->getUrl() is missing
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 2 Jun 2015 11:55:13 +0000 (13:55 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 2 Jun 2015 11:55:13 +0000 (13:55 +0200)
Remote Activity notices generally don't have a proper HTTP URL associated.

classes/Notice.php

index 49c6801ae77f418799b30acd08b479f3b7ca10de..500ea31c976860c9eea49489d36de8e558e854bf 100644 (file)
@@ -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
             }