Move stuff around

This commit is contained in:
binwiederhier
2026-03-19 21:46:52 -04:00
parent a1b403d23c
commit d86e20173c
8 changed files with 396 additions and 396 deletions
+1 -7
View File
@@ -3,7 +3,6 @@ package attachment
import (
"context"
"io"
"strings"
"time"
"heckel.io/ntfy/v2/log"
@@ -38,15 +37,10 @@ func (b *s3Backend) List() ([]object, error) {
if err != nil {
return nil, err
}
prefix := b.client.Prefix
result := make([]object, 0, len(objects))
for _, obj := range objects {
id := obj.Key
if prefix != "" {
id = strings.TrimPrefix(id, prefix+"/")
}
result = append(result, object{
ID: id,
ID: obj.Key,
Size: obj.Size,
LastModified: obj.LastModified,
})