The post-media table now works with the "attach" field as well

This commit is contained in:
Michael 2020-10-31 13:26:08 +00:00
parent e5c145e73c
commit 8485c8c357
7 changed files with 131 additions and 22 deletions

View file

@ -196,7 +196,8 @@ class Processor
$item['attach'] = '';
}
$item['attach'] .= '[attach]href="' . $attach['url'] . '" length="' . ($attach['length'] ?? '0') . '" type="' . $attach['mediaType'] . '" title="' . ($attach['name'] ?? '') . '"[/attach]';
$item['attach'] .= Post\Media::getAttachElement($attach['url'],
$attach['length'] ?? 0, $attach['mediaType'], $attach['name'] ?? '');
}
}
}