]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Notify.php
Merge pull request #8210 from nupplaphil/task/mod_fsuggest
[friendica.git] / src / Model / Notify.php
index b12eb341b0d188d4adbcdf4f8308e6301925584f..35d72384e89526cb94e362dbd1bbab159db67478 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Friendica\Model;
 
-use Exception;
 use Friendica\BaseModel;
 use Friendica\Content\Text\BBCode;
 use Friendica\Database\Database;
@@ -50,24 +49,6 @@ class Notify extends BaseModel
                $this->setMsgCache();
        }
 
-       /**
-        * Set the notification as seen
-        *
-        * @param bool $seen true, if seen
-        *
-        * @return bool True, if the seen state could be saved
-        */
-       public function setSeen(bool $seen = true)
-       {
-               $this->seen = $seen;
-               try {
-                       return $this->repo->update($this);
-               } catch (Exception $e) {
-                       $this->logger->warning('Update failed.', ['$this' => $this, 'exception' => $e]);
-                       return false;
-               }
-       }
-
        /**
         * Sets the pre-formatted name (caching)
         */