Merge branch 'main' of github.com:binwiederhier/ntfy into attachment-s3

This commit is contained in:
binwiederhier
2026-03-22 08:43:45 -04:00
6 changed files with 20 additions and 12 deletions
+3
View File
@@ -138,6 +138,9 @@ func (c *Store) Remove(ids ...string) error {
// deletes orphans (not in the valid ID set and older than 1 hour), and recomputes
// the total size from the remaining objects.
func (c *Store) sync() error {
if c.localIDs == nil {
return nil
}
localIDs, err := c.localIDs()
if err != nil {
return fmt.Errorf("attachment sync: failed to get valid IDs: %w", err)