]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Term.php
Use the item classes where possible
[friendica.git] / src / Model / Term.php
index fd44603f978f33a8aff6eb18964875aeca2d9442..0de2eddf48f458aae33ec4c67778af8d5d085971 100644 (file)
@@ -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']]);
                                        }
                                }