[DB][File] Remove timestamp, add actor_id

This commit is contained in:
Hugo Sales
2020-08-15 05:15:36 +00:00
committed by Hugo Sales
parent 6d1fa10965
commit d86636ebd4
2 changed files with 3 additions and 3 deletions

View File

@@ -47,10 +47,10 @@ abstract class Utils
$hash = hash_file(File::FILEHASH_ALGO, $sfile->getPathname());
$file = File::create([
'file_hash' => $hash,
'actor_id' => $actor_id,
'mimetype' => $sfile->getMimeType(),
'size' => $sfile->getSize(),
'title' => $title ?: _m('Untitled attachment'),
'timestamp' => $sfile->getMTime(),
'is_local' => $is_local,
]);
$sfile->move($dest_dir, $hash);