aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-04 04:22:34 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-04 04:22:34 -0700
commit941b2331f1b99b3f06cac9e7e864f08a2b44b9a9 (patch)
tree4064af5dc5c5fe1e74239e3e7e71e2292cb2ffb3 /include/items.php
parentb8a9581acb3525c6c1c8dc872dd93cfba89c6dd8 (diff)
downloadvolse-hubzilla-941b2331f1b99b3f06cac9e7e864f08a2b44b9a9.tar.gz
volse-hubzilla-941b2331f1b99b3f06cac9e7e864f08a2b44b9a9.tar.bz2
volse-hubzilla-941b2331f1b99b3f06cac9e7e864f08a2b44b9a9.zip
xrd cannot be called before db is open to get language
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index ce354de9b..ac4e694be 100644
--- a/include/items.php
+++ b/include/items.php
@@ -718,7 +718,7 @@ function consume_feed($xml,$importer,$contact, &$hub) {
);
// who is the last child now?
$r = q("SELECT `id` FROM `item` WHERE `parent-uri` = '%s' AND `type` != 'activity' AND `deleted` = 0 AND `uid` = %d
- ORDER BY `edited` DESC LIMIT 1",
+ ORDER BY `created` DESC LIMIT 1",
dbesc($item['parent-uri']),
intval($importer['uid'])
);