provide a way to preserve photo timestamps when importing (rather than uploading)

This commit is contained in:
friendica
2014-08-12 21:51:32 -07:00
parent da982c6c9f
commit 041aff36b7
3 changed files with 13 additions and 4 deletions
+5
View File
@@ -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)