mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-09-18 21:38:07 +00:00
use permissive mode to find HTML content
This commit is contained in:
parent
152d9dc36c
commit
b4fc7b1b27
1 changed files with 2 additions and 2 deletions
|
@ -714,9 +714,9 @@ export class ApNoteService {
|
|||
if (file) files.push(file);
|
||||
}
|
||||
|
||||
// Extract inline media from markdown content.
|
||||
// Extract inline media from HTML content.
|
||||
// Don't use source.content, _misskey_content, or anything else because those aren't HTML.
|
||||
const htmlContent = getContentByType(note, 'text/html');
|
||||
const htmlContent = getContentByType(note, 'text/html', true);
|
||||
if (htmlContent) {
|
||||
for (const attach of extractMediaFromHtml(htmlContent)) {
|
||||
attach.sensitive ??= note.sensitive;
|
||||
|
|
Loading…
Add table
Reference in a new issue