aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php5
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']);