]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
getUrl replaces deprecated bestUrl (more to come)
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 28 Apr 2014 12:04:54 +0000 (14:04 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 28 Apr 2014 12:04:54 +0000 (14:04 +0200)
classes/Notice.php

index 0264c62275c67ebaac8e1bb33023855628cb360d..a72e04746c5bdc1ab77c9e9d1fcc780f58b1c79a 100644 (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
             }