Commit Graph

712 Commits

Author SHA1 Message Date
Hunter Kehoe 2b40ad9a12 make staticcheck happy 2025-05-22 19:57:02 -06:00
Hunter Kehoe ad7ab18fb7 prevent changing admin passwords 2025-05-22 19:57:02 -06:00
Hunter Kehoe 8f9dafce20 change user password via accounts API 2025-05-22 19:57:00 -06:00
binwiederhier 0514ea4ac0 Merge branch 'main' of github.com:binwiederhier/ntfy 2025-05-22 20:59:29 -04:00
binwiederhier 1598087e1f Fix tests 2025-05-22 20:58:28 -04:00
Philipp C. Heckel f4aba12546
Merge branch 'main' into since-latest-param 2025-05-22 20:57:52 -04:00
binwiederhier 6d15b9face Fix up APNs PR 2025-05-22 20:48:24 -04:00
Philipp C. Heckel faa4dcbcee
Merge pull request #1287 from barart/fix-anonymous-read-restriction
Handle anonymous read restrictions by sending a poll_request event
2025-05-22 20:22:58 -04:00
Philipp C. Heckel 7e916516e0
Merge pull request #1338 from wunter8/websockets-401
Websocket http error codes
2025-05-21 20:26:32 -04:00
Philipp C. Heckel bd4b5e9e1b
Merge pull request #1312 from vkrause/work/vkrause/detect-encrypted-messages-as-unified-push
Consider aes128gcm content encoding as an indicator for UnifiedPush
2025-05-21 19:16:17 -04:00
Philipp C. Heckel f563b671c8
Merge pull request #1266 from mmatuska/fix/extractIPAddress
server/util.go: fix logic in extractIPAddress()
2025-05-21 19:11:13 -04:00
binwiederhier d1ac8d03e0 Security updates 2025-05-21 18:49:19 -04:00
Hunter Kehoe cdae5493e2 write http errors to websocket connection instead of always 200 2025-05-14 11:39:18 -06:00
Hunter Kehoe f110472204 fix typo 2025-05-14 11:20:30 -06:00
Volker Krause bd08a120cd Consider aes128gcm content encoding as an indicator for UnifiedPush
Without this a UnifiedPush/Web Push message with encryption would be
turned into an attachment. That in itself isn't pretty but can still
work, but it requires attachments to be enabled in the first place.
2025-04-07 17:19:44 +02:00
barart 6b2cfb1d1d
Handle anonymous read restrictions by sending a poll_request event
If a topic does not allow anonymous reads, this change ensures that we send a "poll_request" event instead of relaying the message via Firebase. Additionally, we include generic text in the title and body/message. This way, if the client cannot retrieve the actual message, the user will still receive a notification, prompting them to update the client manually.
2025-03-05 13:04:21 -06:00
Martin Matuska bd39cf4b54 server/util.go: fix logic in extractIPAddress() 2025-01-26 00:00:06 +01:00
Hunter Kehoe 9241b0550c feat: add subscribe param 2024-11-04 21:33:35 -07:00
binwiederhier d243c22510 Docs, fix lint 2024-09-29 13:20:36 -04:00
binwiederhier d38c149263 Docs 2024-09-29 13:12:51 -04:00
Philipp C. Heckel fc3624cd50
Merge pull request #1141 from pcouy/smtp-sender-date-header
Add Date header to sent e-mails
2024-09-29 12:41:29 -04:00
Bishtawi 112efaae90 Support SMTP Auth Plain 2024-08-07 17:29:54 -07:00
Pierre Couy 003fec5f83 Add Date header to sent e-mails 2024-06-29 15:31:25 +02:00
Philipp C. Heckel 043738a475
Merge pull request #1098 from wunter8/patch-6
don't cache config.js
2024-05-07 21:21:39 -04:00
binwiederhier 030f7266f7 Do not set rate visitor for non-eligible topics 2024-05-07 21:17:51 -04:00
wunter8 499b0dd839
don't cache config.js 2024-04-25 16:09:27 -06:00
Philipp C. Heckel 31d0c812ce
Merge pull request #1082 from wunter8/fix-username-regex
Fix username regex
2024-04-24 16:03:25 -04:00
binwiederhier 33b603def5 Re-add idx_topic to messages table 2024-04-24 14:38:05 -04:00
Hunter Kehoe e4c2b938d3 clean up invalid username code 2024-04-05 08:43:56 -06:00
Hunter Kehoe fc7cf5933f fix error message for invalid username/password 2024-04-03 21:58:43 -06:00
binwiederhier 21c6776269 Fix linter 2024-03-25 09:34:44 -04:00
binwiederhier 7fed392e0c Disallow certain templates 2024-03-24 23:19:16 -04:00
binwiederhier af16542d02 Removed unused vars 2024-03-24 14:28:10 -04:00
binwiederhier b9c176ddba Tests 2024-03-22 22:01:41 -04:00
binwiederhier a04f2f9c9a Bla 2024-03-22 20:45:16 -04:00
binwiederhier 9247dac50d Move things, revert naming 2024-03-20 21:39:17 -04:00
binwiederhier de65d07518 Simplify(?) templating cases 2024-03-20 21:33:54 -04:00
wunter8 83356f565e
remove debug print statement 2024-03-20 10:54:41 -06:00
Hunter Kehoe 7fd5f0b29d allow large HTTP body so long as resulting message is small 2024-03-19 21:56:55 -06:00
Hunter Kehoe 867cf28080 refactor gjson parsing code 2024-03-19 20:30:24 -06:00
Hunter Kehoe b2eb5b94bd use existing message and title fields for templates 2024-03-18 20:04:40 -06:00
Hunter Kehoe df7d6baec5 add templating for title and message fields 2024-03-17 21:55:50 -06:00
binwiederhier 243123fd7e Convert duration flags, add docs 2024-03-07 12:22:35 -05:00
binwiederhier 36b33030f3 Add message-{size|delay}-limit 2024-03-07 11:53:12 -05:00
binwiederhier 17709f2fb7 Merge branch 'main' into zhzy0077-patch-1 2024-03-07 10:38:19 -05:00
binwiederhier aecf0a5f25 Remove Rate-Topics 2024-03-07 10:07:42 -05:00
binwiederhier b65044712b Fix linter 2023-11-16 21:04:49 -05:00
binwiederhier 22f48c5ad3 Change mod path 2023-11-16 20:54:58 -05:00
binwiederhier 859a4e4f79 Added another test 2023-11-16 09:58:32 -05:00
binwiederhier 7f1855ad4d It's better than nothing 2023-11-16 09:49:35 -05:00