X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FUserItem.php;h=38e9adc6ea26d451375347d144525b46ebfeebd1;hb=bd9f36622e056c83e8bfef2920640285ce9672b0;hp=b7dfec4b1228afaa4dfe722f36b0a28ad1fe8183;hpb=f997b360858062874acb5f46f4e4cc65edfa45ba;p=friendica.git diff --git a/src/Model/UserItem.php b/src/Model/UserItem.php index b7dfec4b12..38e9adc6ea 100644 --- a/src/Model/UserItem.php +++ b/src/Model/UserItem.php @@ -156,7 +156,9 @@ class UserItem Logger::info('Set notification', ['iid' => $item['id'], 'uid' => $uid, 'notification-type' => $notification_type]); - DBA::update('user-item', ['notification-type' => $notification_type], ['iid' => $item['id'], 'uid' => $uid], true); + $fields = ['notification-type' => $notification_type]; + Post\User::update($item['uri-id'], $uid, $fields); + DBA::update('user-item', $fields, ['iid' => $item['id'], 'uid' => $uid], true); } /**