]> git.mxchange.org Git - friendica.git/commitdiff
Just some code cleanup
authorMichael <heluecht@pirati.ca>
Sat, 7 Jul 2018 11:39:37 +0000 (11:39 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Jul 2018 11:39:37 +0000 (11:39 +0000)
src/Model/Item.php

index 0757a09b1ada6c1290f67fa3ceaf9c802b54b1a6..a95bc184f1dfcef2f958dd02851daf56a242ded7 100644 (file)
@@ -2892,12 +2892,9 @@ class Item extends BaseObject
                        dba::update('item', $fields, ['id' => $like_item['id']]);
 
                        // Clean up the Diaspora signatures for this like
-                       // Go ahead and do it even if Diaspora support is disabled. We still want to clean up
-                       // if it had been enabled in the past
                        dba::delete('sign', ['iid' => $like_item['id']]);
 
-                       $like_item_id = $like_item['id'];
-                       Worker::add(PRIORITY_HIGH, "Notifier", "like", $like_item_id);
+                       Worker::add(PRIORITY_HIGH, "Notifier", "like", $like_item['id']);
 
                        if (!$event_verb_flag || $like_item['verb'] == $activity) {
                                return true;