diff options
author | friendica <info@friendica.com> | 2012-06-23 06:41:37 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-23 06:41:37 -0700 |
commit | a132eda2cf8524e98d94088e9130f50163ade8cb (patch) | |
tree | 31eb4dad4f432d3aa98a602bad9e1234e7dbdbfb /include | |
parent | 1ba0d73a9aef3fd8469cd886bf6647e966a272b2 (diff) | |
download | volse-hubzilla-a132eda2cf8524e98d94088e9130f50163ade8cb.tar.gz volse-hubzilla-a132eda2cf8524e98d94088e9130f50163ade8cb.tar.bz2 volse-hubzilla-a132eda2cf8524e98d94088e9130f50163ade8cb.zip |
cokmment likes not propagating
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 5bbceb198..9f90d66e4 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; |