]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
EN US and GB translation updates THX AndyH3
[friendica.git] / include / enotify.php
index 229ef33df7c12fc1d718210523f3007bc891dad3..732c1d7b43c18e401f5cb31c494b3689780ec2a6 100644 (file)
@@ -596,17 +596,13 @@ function check_user_notification($itemid) {
 function check_item_notification($itemid, $uid, $notification_type) {
        $fields = ['id', 'uri-id', 'mention', 'parent', 'parent-uri-id', 'title', 'body',
                'author-link', 'author-name', 'author-avatar', 'author-id',
-               'guid', 'parent-uri', 'uri', 'contact-id', 'network', 'gravity', 'verb'];
+               'guid', 'parent-uri', 'uri', 'contact-id', 'network'];
        $condition = ['id' => $itemid, 'deleted' => false];
        $item = Item::selectFirstForUser($uid, $fields, $condition);
        if (!DBA::isResult($item)) {
                return false;
        }
 
-       if (!in_array($item['gravity'], [GRAVITY_PARENT, GRAVITY_COMMENT]) && ($item['verb'] != Activity::ANNOUNCE)) {
-               return false;
-       }
-
        // Generate the notification array
        $params = [];
        $params['uid'] = $uid;