Skip to content

feat: images for web push notifications via imgproxy#3113

Draft
Soxasora wants to merge 4 commits into
stackernews:masterfrom
Soxasora:feat/webpush-images-support
Draft

feat: images for web push notifications via imgproxy#3113
Soxasora wants to merge 4 commits into
stackernews:masterfrom
Soxasora:feat/webpush-images-support

Conversation

@Soxasora

@Soxasora Soxasora commented Jun 18, 2026

Copy link
Copy Markdown
Member

Description

Closes #577
Adds image previews to web push notifications, using the first confirmed image in item.imgproxyUrls or the first image in item.text. Recipients that have showImagesAndVideos: false won't get image previews.

The image preview only appears on notifications that surface content the recipient hasn't seen:

  • notifyUserSubscribers
  • notifyTerritorySubscribers
  • notifyThreadSubscribers
  • notifyItemParents
  • notifyItemMention
  • notifyMention

bits:

  • extractUrls now supports limit and type to customize the url search in markdown text.
    It's used with limit: 1 and type: 'image' to try to avoid notifications with a broken image preview.
  • meetsUserSatFilter and its batch counterpart are now general user notification preferences (getUserNotificationPrefs) to get showImagesAndVideo in a single query.
    Sat filters logic is untouched, just moved to make space for the media filter

Screenshots

tbd

Additional Context

I ignored the imgproxyOnly filter because image previews are imgproxied

Checklist

Are your changes backward compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

4, only chrome macOS and it doesn't even support images (macOS limitation)

Did you use AI for this? If so, how much did it assist you?

Yes, review and a bit of cleanup

Soxasora added 3 commits June 18, 2026 20:41
- extractUrls (markdown) supports a `limit` and a
 `type` parameter
- getFirstImageUrl (item) uses `item.imgproxyUrls`
  or the first image in `item.text`

notifications with images:
- notifyUserSubscribers
- notifyTerritorySubscribers
- notifyThreadSubscribers
- notifyItemMention
- notifyMention
@Soxasora Soxasora added enhancement improvements to existing features pwa labels Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement improvements to existing features pwa

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parse image URLs for push notifications

1 participant