]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/Category.php
We now store the receivers as well
[friendica.git] / src / Model / Post / Category.php
index 9d2a359ba3b421d4d74be4f1eb93860620e16427..60a33bd748f392b43814976d635117cb2c5454ab 100644 (file)
@@ -111,6 +111,11 @@ class Category
                return array_column($tags, 'name');
        }
 
+       public static function existsForURIId(int $uri_id, int $uid)
+       {
+               return DBA::exists('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
+       }
+
        /**
         * Generates an array of files or categories of a given uri-id
         *