mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Use the Item class instead of DBA calls when possible
This commit is contained in:
parent
1283b99c6f
commit
e8334c4655
5 changed files with 23 additions and 21 deletions
|
@ -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()]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue