forked from GNUsocial/gnu-social
fallback to local URL if reply->getUrl() is missing
Remote Activity notices generally don't have a proper HTTP URL associated.
This commit is contained in:
parent
0726dcd06c
commit
7e388e697d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user