Use getParent instead of manual reply_to lookup
This commit is contained in:
parent
fcba540a14
commit
a5d8707658
|
@ -1552,12 +1552,12 @@ class Notice extends Managed_DataObject
|
||||||
|
|
||||||
$ctx = new ActivityContext();
|
$ctx = new ActivityContext();
|
||||||
|
|
||||||
if (!empty($this->reply_to)) {
|
try {
|
||||||
$reply = Notice::getKV('id', $this->reply_to);
|
$reply = $this->getParent();
|
||||||
if (!empty($reply)) {
|
$ctx->replyToID = $reply->uri;
|
||||||
$ctx->replyToID = $reply->uri;
|
$ctx->replyToUrl = $reply->bestUrl();
|
||||||
$ctx->replyToUrl = $reply->bestUrl();
|
} catch (Exception $e) {
|
||||||
}
|
// This is not a reply to something
|
||||||
}
|
}
|
||||||
|
|
||||||
$ctx->location = $this->getLocation();
|
$ctx->location = $this->getLocation();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user