[PR #82] [MERGED] Attachments #1219

Closed
opened 2026-05-07 01:01:03 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/82
Author: @binwiederhier
Created: 1/2/2022
Status: Merged
Merged: 1/13/2022
Merged by: @binwiederhier

Base: mainHead: attachments


📝 Commits (10+)

  • eb5b86f WIP: Attachments
  • 38788bb WIP: attachments
  • 2930c4f Preview URL
  • 24eb27d Merge branch 'main' into attachments
  • 5eca204 Attachment size limit
  • 9171e94 Fix file extension detection; fix HTTPS port
  • 70aefc2 Merge branch 'main' into attachments
  • c45a28e Attachments limits; working visitor limit
  • e7c19a2 Expire attachments properly
  • cefe276 Tests for fileCache

📊 Changes

36 files changed (+2162 additions, -342 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 client/client.go (+8 -2)
📝 client/options.go (+15 -0)
📝 cmd/publish.go (+42 -2)
📝 cmd/serve.go (+56 -3)
📝 docs/config.md (+153 -66)
📝 docs/publish.md (+187 -8)
docs/static/img/android-screenshot-attachment-file.png (+0 -0)
docs/static/img/android-screenshot-attachment-image.png (+0 -0)
📝 go.mod (+1 -0)
📝 go.sum (+3 -0)
📝 scripts/postinst.sh (+0 -2)
📝 server/cache.go (+2 -0)
📝 server/cache_mem.go (+29 -0)
📝 server/cache_mem_test.go (+4 -0)
📝 server/cache_sqlite.go (+114 -17)
📝 server/cache_sqlite_test.go (+4 -0)
📝 server/cache_test.go (+130 -57)
📝 server/config.go (+88 -62)
server/file_cache.go (+121 -0)

...and 16 more files

📄 Description

This is for #25


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/82 **Author:** [@binwiederhier](https://github.com/binwiederhier) **Created:** 1/2/2022 **Status:** ✅ Merged **Merged:** 1/13/2022 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `attachments` --- ### 📝 Commits (10+) - [`eb5b86f`](https://github.com/binwiederhier/ntfy/commit/eb5b86ffe20a552c6f9e6a3a523539561741da74) WIP: Attachments - [`38788bb`](https://github.com/binwiederhier/ntfy/commit/38788bb2e99cff1ce5f357218629f9e7177fb6ba) WIP: attachments - [`2930c4f`](https://github.com/binwiederhier/ntfy/commit/2930c4ff62f47c2aa1086c966ceadc805421e784) Preview URL - [`24eb27d`](https://github.com/binwiederhier/ntfy/commit/24eb27d41c1d85e4675baccae5ce8ea189d63c05) Merge branch 'main' into attachments - [`5eca204`](https://github.com/binwiederhier/ntfy/commit/5eca20469f0d9882747cae8b8e100e23077e31ea) Attachment size limit - [`9171e94`](https://github.com/binwiederhier/ntfy/commit/9171e94e5a056f7b95ac3528cead7dfba362d051) Fix file extension detection; fix HTTPS port - [`70aefc2`](https://github.com/binwiederhier/ntfy/commit/70aefc2e48f31372406b1ed0927a77befc896f22) Merge branch 'main' into attachments - [`c45a28e`](https://github.com/binwiederhier/ntfy/commit/c45a28e6af94e571de3aa6833d072e051f69418c) Attachments limits; working visitor limit - [`e7c19a2`](https://github.com/binwiederhier/ntfy/commit/e7c19a2bad5c59b869ae3f72fb263accd49cbdb7) Expire attachments properly - [`cefe276`](https://github.com/binwiederhier/ntfy/commit/cefe276ce55cb5c29ede1c1fef5393194c1f6e44) Tests for fileCache ### 📊 Changes **36 files changed** (+2162 additions, -342 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `client/client.go` (+8 -2) 📝 `client/options.go` (+15 -0) 📝 `cmd/publish.go` (+42 -2) 📝 `cmd/serve.go` (+56 -3) 📝 `docs/config.md` (+153 -66) 📝 `docs/publish.md` (+187 -8) ➕ `docs/static/img/android-screenshot-attachment-file.png` (+0 -0) ➕ `docs/static/img/android-screenshot-attachment-image.png` (+0 -0) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+3 -0) 📝 `scripts/postinst.sh` (+0 -2) 📝 `server/cache.go` (+2 -0) 📝 `server/cache_mem.go` (+29 -0) 📝 `server/cache_mem_test.go` (+4 -0) 📝 `server/cache_sqlite.go` (+114 -17) 📝 `server/cache_sqlite_test.go` (+4 -0) 📝 `server/cache_test.go` (+130 -57) 📝 `server/config.go` (+88 -62) ➕ `server/file_cache.go` (+121 -0) _...and 16 more files_ </details> ### 📄 Description This is for #25 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:01:03 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1219
No description provided.