From 0883f54f62f3f2d512d3b3e965eb84b5d9102b50 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 28 Apr 2014 14:04:54 +0200 Subject: [PATCH] getUrl replaces deprecated bestUrl (more to come) --- classes/Notice.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 0264c62275..a72e04746c 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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 } -- 2.39.5