]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
getByUri added to Notice for future use
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 12 Jan 2014 21:37:41 +0000 (22:37 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 12 Jan 2014 21:37:41 +0000 (22:37 +0100)
classes/Notice.php

index f40a4c2111b326ac3c11cb6798d03e4a1c5b4000..83a8eaa3e865cc546d78f06b2e0610857daf664a 100644 (file)
@@ -216,6 +216,11 @@ class Notice extends Managed_DataObject
         return $this->url ?: $this->uri;
     }
 
+    public function getByUri($uri)
+    {
+        return Notice::getKV('uri', $uri);
+    }
+
     /**
      * Extract #hashtags from this notice's content and save them to the database.
      */