diff options
author | redmatrix <git@macgirvin.com> | 2016-04-07 18:54:48 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-07 18:54:48 -0700 |
commit | 279f32b13deb45f3fe0ab2d32f6d2a0ea6e224e5 (patch) | |
tree | 02bc7d1b90498b585102f9c9f84afc19aba0b585 /include/import.php | |
parent | 3a6187af3dba16bcada988593d5faabe62231651 (diff) | |
download | volse-hubzilla-279f32b13deb45f3fe0ab2d32f6d2a0ea6e224e5.tar.gz volse-hubzilla-279f32b13deb45f3fe0ab2d32f6d2a0ea6e224e5.tar.bz2 volse-hubzilla-279f32b13deb45f3fe0ab2d32f6d2a0ea6e224e5.zip |
send file sync packets for all known file operations
Diffstat (limited to 'include/import.php')
-rw-r--r-- | include/import.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/import.php b/include/import.php index 3525ee948..f15dedfe0 100644 --- a/include/import.php +++ b/include/import.php @@ -890,6 +890,11 @@ function sync_files($channel,$files) { $attachment_stored = false; foreach($f['attach'] as $att) { + if($att['deleted']) { + attach_delete($channel,$att['hash']); + continue; + } + $attach_exists = false; $x = attach_by_hash($att['hash']); |