]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/UserNotification.php
Merge branch '2021.03-rc' into copyright-2021
[friendica.git] / src / Model / Post / UserNotification.php
index 9173cfbe2ba38ebb90ee99b30039853780b71c76..ce7ca464e1238fcfdbdef924229d156c6c83e991 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -149,7 +149,7 @@ class UserNotification
 
                // Add every user who participated so far in this thread
                // This can only happen with participations on global items. (means: uid = 0) 
-               $users = DBA::p("SELECT DISTINCT(`contact-uid`) AS `uid` FROM `post-view`
+               $users = DBA::p("SELECT DISTINCT(`contact-uid`) AS `uid` FROM `post-user-view`
                        WHERE `contact-uid` != 0 AND `parent-uri-id` = ? AND `uid` = ?", $item['parent-uri-id'], $uid);
                while ($user = DBA::fetch($users)) {
                        $uids[] = $user['uid'];
@@ -229,7 +229,7 @@ class UserNotification
                        return;
                }
 
-               Logger::info('Set notification', ['iid' => $item['id'], 'uri-id' => $item['uri-id'], 'uid' => $uid, 'notification-type' => $notification_type]);
+               Logger::info('Set notification', ['uri-id' => $item['uri-id'], 'uid' => $uid, 'notification-type' => $notification_type]);
 
                $fields = ['notification-type' => $notification_type];
                Post\User::update($item['uri-id'], $uid, $fields);