aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-12 21:34:28 -0700
committerfriendica <info@friendica.com>2012-06-12 21:34:28 -0700
commitd955813f22d5151046733fc55349112c44a16277 (patch)
treec7a0a1ebf8fbf0f74a96fcdbf9b5a0841b8b03f4 /include/items.php
parent08af43f3964860f17019fdc42e378a8a0904fe74 (diff)
downloadvolse-hubzilla-d955813f22d5151046733fc55349112c44a16277.tar.gz
volse-hubzilla-d955813f22d5151046733fc55349112c44a16277.tar.bz2
volse-hubzilla-d955813f22d5151046733fc55349112c44a16277.zip
tracking another edge case
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index f2dde23a7..5d9c36d94 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3393,14 +3393,16 @@ function drop_item($id,$interactive = true) {
function first_post_date($uid,$wall = false) {
- $r = q("select created from item
+ $r = q("select id, created from item
where uid = %d and wall = %d and deleted = 0 and visible = 1 AND moderated = 0
order by created asc limit 1",
intval($uid),
intval($wall ? 1 : 0)
);
- if(count($r))
+ if(count($r)) {
+ logger('first_post_date: ' . $r[0]['id'] . ' ' . $r[0]['created'], LOGGER_DATA);
return substr($r[0]['created'],0,10);
+ }
return false;
}