]> git.mxchange.org Git - friendica.git/commitdiff
cokmment likes not propagating
authorfriendica <info@friendica.com>
Sat, 23 Jun 2012 13:41:37 +0000 (06:41 -0700)
committerfriendica <info@friendica.com>
Sat, 23 Jun 2012 13:41:37 +0000 (06:41 -0700)
include/items.php

index 5bbceb1982b4daeef95b55bcce02d15a0c23730a..9f90d66e47d31989f4b782c363ca21adef486f1e 100755 (executable)
@@ -2362,10 +2362,13 @@ function local_delivery($importer,$data) {
                                        $datarray['gravity'] = GRAVITY_LIKE;
                                        $datarray['last-child'] = 0;
                                        // only one like or dislike per person
-                                       $r = q("select id from item where uid = %d and `contact-id` = %d and verb ='%s' and deleted = 0 limit 1",
+                                       $r = q("select id from item where uid = %d and `contact-id` = %d and verb ='%s' and (`thr-parent` = '%s' or `parent-uri` = '%s') and deleted = 0 limit 1",
                                                intval($datarray['uid']),
                                                intval($datarray['contact-id']),
-                                               dbesc($datarray['verb'])
+                                               dbesc($datarray['verb']),
+                                               dbesc($datarray['parent-uri']),
+                                               dbesc($datarray['parent-uri'])
+               
                                        );
                                        if($r && count($r))
                                                continue;