X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Flike.php;h=1dcadde705ef93e9885edf07a07af5509e75fa21;hb=a7b004a72707ad2f5bfa45c25c2db6db70229bde;hp=e6f1aab6de11220ed185c91ed8703b718bcacf78;hpb=b85c94a60d5142adc9aa77d2de7c05b91021c450;p=friendica.git diff --git a/include/like.php b/include/like.php index e6f1aab6de..1dcadde705 100644 --- a/include/like.php +++ b/include/like.php @@ -163,9 +163,7 @@ function do_like($item_id, $verb) { // 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 - q("DELETE FROM `sign` WHERE `iid` = %d", - intval($like_item['id']) - ); + dba::delete('sign', array('iid' => $like_item['id'])); $like_item_id = $like_item['id']; Worker::add(PRIORITY_HIGH, "Notifier", "like", $like_item_id); @@ -249,7 +247,7 @@ EOT; } // Save the author information for the like in case we need to relay to Diaspora - Diaspora::store_like_signature($item_contact, $new_item_id); + Diaspora::storeLikeSignature($item_contact, $new_item_id); $new_item['id'] = $new_item_id;