aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-17 21:38:43 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-17 21:38:43 -0700
commit1982fc807f9f7eb02429acb3a46bfd8e5ba32748 (patch)
tree90a5f8b7723fec9bc92b70e6c5d019164664ed03 /include/identity.php
parent4ebee195cc1b5cb8e0d79bb5c58b50b271fc68a7 (diff)
downloadvolse-hubzilla-1982fc807f9f7eb02429acb3a46bfd8e5ba32748.tar.gz
volse-hubzilla-1982fc807f9f7eb02429acb3a46bfd8e5ba32748.tar.bz2
volse-hubzilla-1982fc807f9f7eb02429acb3a46bfd8e5ba32748.zip
add item_id to yearly dump files
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 5a3861b31..23c099bbd 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -625,6 +625,18 @@ function identity_export_year($channel_id,$year) {
$ret['item'][] = encode_item($rr,true);
}
+
+ $r = q("select item_id.*, item.mid from item_id left join item on item_id.iid = item.id where item_id.uid = %d
+ and item.created >= '%s' and item.created < '%s' order by created ",
+ intval($channel_id),
+ dbesc($mindate),
+ dbesc($maxdate)
+ );
+
+ if($r)
+ $ret['item_id'] = $r;
+
+
return $ret;
}