From 15c95dc4159656bfd7c1bb60b906c9359afccf74 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 12 Jan 2014 22:37:41 +0100 Subject: [PATCH] getByUri added to Notice for future use --- classes/Notice.php | 5 +++++ 1 file changed, 5 insertions(+) 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. */ -- 2.39.5