From: friendica Date: Sat, 23 Jun 2012 13:41:37 +0000 (-0700) Subject: cokmment likes not propagating X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a132eda2cf8524e98d94088e9130f50163ade8cb;p=friendica.git cokmment likes not propagating --- diff --git a/include/items.php b/include/items.php index 5bbceb1982..9f90d66e47 100755 --- a/include/items.php +++ b/include/items.php @@ -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;