mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-12 14:55:22 +00:00
feat: check extension to display external images
This commit is contained in:
@@ -35,7 +35,7 @@ export const formatMessage = (m) => {
|
||||
};
|
||||
|
||||
const imageRegex = /\.(png|jpe?g|gif|webp)$/i;
|
||||
const isImage = (attachment) => {
|
||||
export const isImage = (attachment) => {
|
||||
if (!attachment) return false;
|
||||
|
||||
// if there's a type, only take that into account
|
||||
|
||||
Reference in New Issue
Block a user