aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-12 21:51:32 -0700
committerfriendica <info@friendica.com>2014-08-12 21:51:32 -0700
commit041aff36b7feb4983a2cc5faed79e54863e06913 (patch)
tree468c6b21d51124d79ec6e9b70fc4fc7585d68b4d /include/photos.php
parentda982c6c9f64b160bcc8e56cfbb44e96b19d9beb (diff)
downloadvolse-hubzilla-041aff36b7feb4983a2cc5faed79e54863e06913.tar.gz
volse-hubzilla-041aff36b7feb4983a2cc5faed79e54863e06913.tar.bz2
volse-hubzilla-041aff36b7feb4983a2cc5faed79e54863e06913.zip
provide a way to preserve photo timestamps when importing (rather than uploading)
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php
index 8bedfd15d..bd61e555d 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -171,6 +171,11 @@ function photo_upload($channel, $observer, $args) {
'allow_cid' => $str_contact_allow, 'allow_gid' => $str_group_allow,
'deny_cid' => $str_contact_deny, 'deny_gid' => $str_group_deny
);
+ if($args['created'])
+ $p['created'] = $args['created'];
+ if($args['edited'])
+ $p['edited'] = $args['edited'];
+
$r1 = $ph->save($p);
if(! $r1)