Skip to content
Snippets Groups Projects
Commit e0afeff2 authored by dakkar's avatar dakkar
Browse files

merge: hide images/videos in og cards, when under a CW - fixes #487 (!488)

View MR for information: !488



Closes #487

Approved-by: default avatarMarie <marie@kaifa.ch>
Approved-by: default avatarAmelia Yukii <amelia.yukii@shourai.de>
parents cfc8081c 56dca6db
No related branches found
No related tags found
2 merge requests!501Release 2024.3.3,!488hide images/videos in og cards, when under a CW - fixes #487
Pipeline #518 canceled with stage
......@@ -5,8 +5,8 @@ block vars
- const title = user.name ? `${user.name} (@${user.username})` : `@${user.username}`;
- const url = `${config.url}/notes/${note.id}`;
- const isRenote = note.renote && note.text == null && note.fileIds.length == 0 && note.poll == null;
- const images = (note.files || []).filter(file => file.type.startsWith('image/') && !file.isSensitive)
- const videos = (note.files || []).filter(file => file.type.startsWith('video/') && !file.isSensitive)
- const images = note.cw ? [] : (note.files || []).filter(file => file.type.startsWith('image/') && !file.isSensitive)
- const videos = note.cw ? [] : (note.files || []).filter(file => file.type.startsWith('video/') && !file.isSensitive)
block title
= `${title} | ${instanceName}`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment