]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
New function to fetch item data especially for users
[friendica.git] / include / enotify.php
index 3e01736f15a82434f4bfc51104cac9617fc1eb6e..00459ac5c09f5fbd8b78d6bab49c1fa5edc12e4b 100644 (file)
@@ -130,7 +130,7 @@ function notification($params)
                $item = null;
 
                if ($params['otype'] === 'item' && $parent_id) {
-                       $item = Item::selectFirst($params['uid'], [], ['id' => $parent_id]);
+                       $item = Item::selectFirstForUser($params['uid'], [], ['id' => $parent_id]);
                }
 
                $item_post_type = item_post_type($item);