Use the Item class instead of DBA calls when possible

This commit is contained in:
Michael 2018-08-15 04:41:49 +00:00
parent 1283b99c6f
commit e8334c4655
5 changed files with 23 additions and 21 deletions

View 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()]);