]> git.mxchange.org Git - friendica.git/blobdiff - include/like.php
Without only the worker queue we don't need the deliverq anymore.
[friendica.git] / include / like.php
index 4df15b4b637963297c9004fc0f4d3dabb30d58aa..210bde690656e84e777c0b6771dc6ee57f867939 100644 (file)
@@ -112,8 +112,9 @@ function do_like($item_id, $verb) {
                        intval($_SESSION['visitor_id']),
                        intval($owner_uid)
                );
-               if (dbm::is_result($r))
+               if (dbm::is_result($r)) {
                        $contact = $r[0];
+               }
        }
        if (! $contact) {
                return false;
@@ -246,7 +247,7 @@ EOT;
 
 
        // Save the author information for the like in case we need to relay to Diaspora
-       diaspora::store_like_signature($contact, $post_id);
+       Diaspora::store_like_signature($contact, $post_id);
 
        $arr['id'] = $post_id;