mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
Fixes Issue 5276 and an endless loop in item::update
This commit is contained in:
parent
585ba4c09f
commit
a7d2f126eb
2 changed files with 16 additions and 51 deletions
|
@ -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']]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue