]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
New function to delete items for users
[friendica.git] / mod / events.php
index cad440f164c542feb6915868b0d49d18e997f277..87c358a99eed6c3e9559e86cf0d1cc2ed48d67bc 100644 (file)
@@ -545,7 +545,7 @@ function events_content(App $a) {
 
                // Delete only real events (no birthdays)
                if (DBM::is_result($ev) && $ev[0]['type'] == 'event') {
-                       $del = Item::deleteById($ev[0]['itemid']);
+                       $del = Item::deleteForUser(['id' => $ev[0]['itemid']], local_user());
                }
 
                if ($del == 0) {