getUrl replaces deprecated bestUrl (more to come)
This commit is contained in:
parent
030639d02d
commit
0883f54f62
|
@ -1472,7 +1472,7 @@ class Notice extends Managed_DataObject
|
||||||
|
|
||||||
$act->id = $this->uri;
|
$act->id = $this->uri;
|
||||||
$act->time = strtotime($this->created);
|
$act->time = strtotime($this->created);
|
||||||
$act->link = $this->bestUrl();
|
$act->link = $this->getUrl();
|
||||||
$act->content = common_xml_safe_str($this->rendered);
|
$act->content = common_xml_safe_str($this->rendered);
|
||||||
|
|
||||||
$profile = $this->getProfile();
|
$profile = $this->getProfile();
|
||||||
|
@ -1520,8 +1520,8 @@ class Notice extends Managed_DataObject
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$reply = $this->getParent();
|
$reply = $this->getParent();
|
||||||
$ctx->replyToID = $reply->uri;
|
$ctx->replyToID = $reply->getUri();
|
||||||
$ctx->replyToUrl = $reply->bestUrl();
|
$ctx->replyToUrl = $reply->getUrl();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
// This is not a reply to something
|
// This is not a reply to something
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user