]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/ThreadUser.php
Changed to null-coalscing style (??) as sugguested by @MrPetovan
[friendica.git] / src / Model / Post / ThreadUser.php
index e599e3dee700ccee2d592bffe179abb9d54793d5..0de26abc58c67bea49b4cb1a5175ceba2629ef01 100644 (file)
@@ -123,31 +123,4 @@ class ThreadUser
        {
                DBA::update('post-thread-user', ['ignored' => $ignored], ['uri-id' => $uri_id, 'uid' => $uid], true);
        }
-
-       /**
-        * @param int $uri_id 
-        * @param int $uid 
-        * @return bool 
-        * @throws Exception 
-        */
-       public static function getPinned(int $uri_id, int $uid)
-       {
-               $threaduser = DBA::selectFirst('post-thread-user', ['pinned'], ['uri-id' => $uri_id, 'uid' => $uid]);
-               if (empty($threaduser)) {
-                       return false;
-               }
-               return (bool)$threaduser['pinned'];
-       }
-
-       /**
-        * @param int $uri_id 
-        * @param int $uid 
-        * @param int $pinned 
-        * @return void 
-        * @throws Exception 
-        */
-       public static function setPinned(int $uri_id, int $uid, int $pinned)
-       {
-               DBA::update('post-thread-user', ['pinned' => $pinned], ['uri-id' => $uri_id, 'uid' => $uid], true);
-       }
 }