]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Term.php
Fixes Issue 5276 and an endless loop in item::update
[friendica.git] / src / Model / Term.php
index 0de2eddf48f458aae33ec4c67778af8d5d085971..b211e7d2ebd532cdd48c44b99639762f3c091def 100644 (file)
@@ -115,7 +115,8 @@ 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']) {
-                                               Item::update(['mention' => true], ['id' => $itemid]);
+                                               /// @todo This function is called frim Item::update - so we mustn't call that function here
+                                               dba::update('item', ['mention' => true], ['id' => $itemid]);
                                                dba::update('thread', ['mention' => true], ['iid' => $message['parent']]);
                                        }
                                }