]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/ItemURI.php
Merge pull request #13172 from annando/parent-view
[friendica.git] / src / Model / ItemURI.php
index a19662735266d7c7d78cc73354ee967f56aee3f2..1755552299741b6884060ea8e4452c75b4aac13d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -81,4 +81,14 @@ class ItemURI
 
                return $itemuri['id'] ?? 0;
        }
+
+       /**
+        * @param int $uriId
+        * @return bool
+        * @throws \Exception
+        */
+       public static function exists(int $uriId): bool
+       {
+               return DBA::exists('item-uri', ['id' => $uriId]);
+       }
 }