]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
Use the Item class instead of DBA calls when possible
[friendica.git] / mod / profile.php
index 6f201591ec9488b9e1a5b7fe7aa3f2e0f4f36915..5d7489ebb4159aaaae337fa5ab884ebf0a01641c 100644 (file)
@@ -347,7 +347,7 @@ function profile_content(App $a, $update = 0)
 
 
        if ($is_owner) {
-               $unseen = DBA::exists('item', ['wall' => true, 'unseen' => true, 'uid' => local_user()]);
+               $unseen = Item::exists(['wall' => true, 'unseen' => true, 'uid' => local_user()]);
                if ($unseen) {
                        $r = Item::update(['unseen' => false],
                                        ['wall' => true, 'unseen' => true, 'uid' => local_user()]);