getUrl replaces deprecated bestUrl (more to come)

This commit is contained in:
Mikael Nordfeldth 2014-04-28 14:04:54 +02:00
parent 030639d02d
commit 0883f54f62

View File

@ -1472,7 +1472,7 @@ class Notice extends Managed_DataObject
$act->id = $this->uri;
$act->time = strtotime($this->created);
$act->link = $this->bestUrl();
$act->link = $this->getUrl();
$act->content = common_xml_safe_str($this->rendered);
$profile = $this->getProfile();
@ -1520,8 +1520,8 @@ class Notice extends Managed_DataObject
try {
$reply = $this->getParent();
$ctx->replyToID = $reply->uri;
$ctx->replyToUrl = $reply->bestUrl();
$ctx->replyToID = $reply->getUri();
$ctx->replyToUrl = $reply->getUrl();
} catch (Exception $e) {
// This is not a reply to something
}