aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-03-25 11:03:37 +0100
committerMario Vavti <mario@mariovavti.com>2015-03-25 11:03:37 +0100
commit49005101c7e83b342ec84ca7277f065c103df4b1 (patch)
tree89b991e121ac4111adc789e8dad6d75b47d41da7
parent022305fe8383be238a442efdbd5ba3463d15b7ab (diff)
downloadvolse-hubzilla-49005101c7e83b342ec84ca7277f065c103df4b1.tar.gz
volse-hubzilla-49005101c7e83b342ec84ca7277f065c103df4b1.tar.bz2
volse-hubzilla-49005101c7e83b342ec84ca7277f065c103df4b1.zip
make postgresql happy
-rw-r--r--include/sharedwithme.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sharedwithme.php b/include/sharedwithme.php
index 3936dc90f..b01764ad3 100644
--- a/include/sharedwithme.php
+++ b/include/sharedwithme.php
@@ -3,7 +3,7 @@
function apply_updates() {
//check for updated items and remove them
- $x = q("SELECT mid, object FROM item WHERE verb = '%s' AND obj_type = '%s' GROUP BY mid",
+ $x = q("SELECT mid, max(object) AS object FROM item WHERE verb = '%s' AND obj_type = '%s' GROUP BY mid",
dbesc(ACTIVITY_UPDATE),
dbesc(ACTIVITY_OBJ_FILE)
);