From f3b6708a92cf347ea65b0db88a6b112b28228f14 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 11 Jun 2019 18:00:42 -0700 Subject: attach sync issues --- include/import.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/import.php b/include/import.php index 4da0d1a0b..24ad1b901 100644 --- a/include/import.php +++ b/include/import.php @@ -1177,7 +1177,7 @@ function sync_files($channel, $files) { convert_oldfields($att,'data','content'); if($att['deleted']) { - attach_delete($channel,$att['hash']); + attach_delete($channel['channel_id'],$att['hash']); continue; } @@ -1383,12 +1383,14 @@ function sync_files($channel, $files) { ); } - if(intval($p['imgscale']) === 0 && $p['os_storage']) - $p['content'] = $store_path; - else + if(intval($p['os_storage'])) { + $p['content'] = $store_path . ((intval($p['imgscale'])) ? '-' . $p['imgscale'] : ''); + } + else { $p['content'] = (($p['content'])? base64_decode($p['content']) : ''); + } - if(intval($p['imgscale']) && (! empty($p['content']))) { + if (intval($p['imgscale']) && ((intval($p['os_storage'])) || (! $p['content']))) { $time = datetime_convert(); -- cgit v1.2.3 From b3f1a19db685e7c84098dcb47d378fdaf2a040f1 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 11 Jun 2019 20:22:57 -0700 Subject: zot6 deletion issue --- Zotlabs/Lib/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 4a1171c5d..bc86ae0e0 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1570,7 +1570,7 @@ class Activity { $s['verb'] = self::activity_decode_mapper($act->type); - if($act->type === 'Tombstone' || ($act->type === 'Create' && $act->obj['type'] === 'Tombstone')) { + if($act->type === 'Tombstone' || $act-type === 'Delete' || ($act->type === 'Create' && $act->obj['type'] === 'Tombstone')) { $s['item_deleted'] = 1; } -- cgit v1.2.3