summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/contact/add.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-09 16:31:04 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-09 16:32:05 +0200
commit39814edf81ede7413d98eaff86b183c42b4d8287 (patch)
tree300d4e31a400fa985efb7b3a90e37e8a6484616f /apps/contacts/ajax/contact/add.php
parent00d7ae8319ad0b48b31df4080fe7da7a848de28d (diff)
downloadnextcloud-server-39814edf81ede7413d98eaff86b183c42b4d8287.tar.gz
nextcloud-server-39814edf81ede7413d98eaff86b183c42b4d8287.zip
Another take at profile photo/thumbnail caching. oc-839.
Diffstat (limited to 'apps/contacts/ajax/contact/add.php')
-rw-r--r--apps/contacts/ajax/contact/add.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/contacts/ajax/contact/add.php b/apps/contacts/ajax/contact/add.php
index 6aaf5a9df35..043e947dc4b 100644
--- a/apps/contacts/ajax/contact/add.php
+++ b/apps/contacts/ajax/contact/add.php
@@ -49,4 +49,10 @@ if(!$id) {
exit();
}
-OCP\JSON::success(array('data' => array( 'id' => $id, 'aid' => $aid )));
+OCP\JSON::success(array(
+ 'data' => array(
+ 'id' => $id,
+ 'aid' => $aid,
+ 'lastmodified' => OC_Contacts_VCard::lastModified($vcard)->format('U')
+ )
+));