aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Like.php
diff options
context:
space:
mode:
authorFlorian Steinel <fsteinel@users.noreply.github.com>2016-10-27 02:41:32 +0200
committerFlorian Steinel <fsteinel@users.noreply.github.com>2016-10-27 02:41:32 +0200
commitc1c96e01fab131dd48cd68cdd9b63639e269d9c8 (patch)
tree3df5a97bc8829cdf811498e6f79c5653a7f7be73 /Zotlabs/Module/Like.php
parentc3af36d33b9a08aacecd572ad17fe33362617d23 (diff)
downloadvolse-hubzilla-c1c96e01fab131dd48cd68cdd9b63639e269d9c8.tar.gz
volse-hubzilla-c1c96e01fab131dd48cd68cdd9b63639e269d9c8.tar.bz2
volse-hubzilla-c1c96e01fab131dd48cd68cdd9b63639e269d9c8.zip
sql: limit 1 for UPDATE and DELETE is not supported by the SQL standard and postgresql
(see: https://www.postgresql.org/message-id/flat/1291109101.26137.35.camel%40pcd12478 )
Diffstat (limited to 'Zotlabs/Module/Like.php')
-rw-r--r--Zotlabs/Module/Like.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index dd0bc99d4..43d318623 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -226,7 +226,7 @@ class Like extends \Zotlabs\Web\Controller {
$z[0]['deleted'] = 1;
build_sync_packet($ch[0]['channel_id'],array('likes' => $z));
- q("delete from likes where id = %d limit 1",
+ q("delete from likes where id = %d",
intval($z[0]['id'])
);
if($z[0]['i_mid']) {