]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Changed documentation
[friendica.git] / include / items.php
index f6027e56ba2375ec8d045268db7d026dc60aa2b5..4a68bd2864db118dc1a82314f16470b3b2d78e2d 100644 (file)
@@ -2290,15 +2290,12 @@ function drop_item($id, $interactive = true) {
                        }
                }
 
-               // send the notification upstream/downstream when it is one of our posts
-               // We don't have to do this for foreign posts
-               /// @todo Check if we still can delete foreign comments on our own post
-               if ($item['wall'] OR $item['origin']) {
-                       $drop_id = intval($item['id']);
-                       $priority = ($interactive ? PRIORITY_HIGH : PRIORITY_LOW);
+               // send the notification upstream/downstream
+               // The priority depends on how the deletion is done.
+               $drop_id = intval($item['id']);
+               $priority = ($interactive ? PRIORITY_HIGH : PRIORITY_LOW);
 
-                       proc_run($priority, "include/notifier.php", "drop", $drop_id);
-               }
+               proc_run($priority, "include/notifier.php", "drop", $drop_id);
 
                if (! $interactive) {
                        return $owner;