]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Fixing #8702
[friendica.git] / include / enotify.php
index bd96ca5d2e80fdc8e084b8b22a45e0afd2d3d0b5..ae2e2e7fefba2526e381350dfd9b00861f5f8cf2 100644 (file)
@@ -470,10 +470,10 @@ function notification($params)
                        'photo'         => $params['source_photo'] ?? '',
                        'link'          => $itemlink ?? '',
                        'uid'           => $params['uid'] ?? 0,
-                       'iid'           => $item_id ?? 0,
-                       'uri-id'        => $uri_id ?? 0,
-                       'parent'        => $parent_id ?? 0,
-                       'parent-uri-id' => $parent_uri_id ?? 0,                 
+                       'iid'           => $item_id,
+                       'uri-id'        => $uri_id,
+                       'parent'        => $parent_id,
+                       'parent-uri-id' => $parent_uri_id,
                        'type'          => $params['type'] ?? '',
                        'verb'          => $params['verb'] ?? '',
                        'otype'         => $params['otype'] ?? '',
@@ -589,7 +589,7 @@ function check_user_notification($itemid) {
  * @throws \Friendica\Network\HTTPException\InternalServerErrorException
  */
 function check_item_notification($itemid, $uid, $notification_type) {
-       $fields = ['id', 'uri-id', 'mention', 'tag', 'parent', 'parent-uri-id', 'title', 'body',
+       $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'];
        $condition = ['id' => $itemid, 'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT], 'deleted' => false];