From: Mikael Nordfeldth Date: Sun, 12 Jan 2014 21:37:41 +0000 (+0100) Subject: getByUri added to Notice for future use X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15c95dc4159656bfd7c1bb60b906c9359afccf74;p=quix0rs-gnu-social.git getByUri added to Notice for future use --- diff --git a/classes/Notice.php b/classes/Notice.php index f40a4c2111..83a8eaa3e8 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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. */