mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #820] [MERGED] fix: check extension to display external images #1437
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1437
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/820
Author: @nihalgonsalves
Created: 7/14/2023
Status: ✅ Merged
Merged: 8/9/2023
Merged by: @binwiederhier
Base:
main← Head:ng/display-external-images📝 Commits (1)
384cabefeat: check extension to display external images📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
web/src/app/notificationUtils.js(+1 -1)📝
web/src/components/Notifications.jsx(+2 -2)📄 Description
Resolves #761, #596
Closes #763
Uses a simple extension check to avoid the erroring image problem in #763, which tries to display everything as an image. If a Notification is sent with a filename with an image extension but it isn't one, it seems like an acceptable solution to simply display an error.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.