mirror of
https://github.com/friendica/friendica
synced 2025-04-26 08:30:10 +00:00
Use the item classes where possible
This commit is contained in:
parent
2a76290d19
commit
507956818d
4 changed files with 6 additions and 56 deletions
|
@ -6,6 +6,7 @@ namespace Friendica\Model;
|
|||
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Item;
|
||||
use dba;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
@ -114,7 +115,7 @@ class Term
|
|||
$users = q("SELECT `uid` FROM `contact` WHERE self AND (`url` = '%s' OR `nurl` = '%s')", $link, $link);
|
||||
foreach ($users AS $user) {
|
||||
if ($user['uid'] == $message['uid']) {
|
||||
dba::update('item', ['mention' => true], ['id' => $itemid]);
|
||||
Item::update(['mention' => true], ['id' => $itemid]);
|
||||
dba::update('thread', ['mention' => true], ['iid' => $message['parent']]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue