This commit is contained in:
1 parent
c678c7aa45
commit
72bc974aa6
3 files changed
+24
-1
No files matched your search
@@ -11,6 +11,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/components/images"
|
||||
"github.com/valkey-io/valkey-go"
|
||||
)
|
||||
|
||||
@@ -22,6 +23,10 @@ type Image struct {
|
||||
Height int
|
||||
}
|
||||
|
||||
func (i Image) URL() string {
|
||||
return images.URLFromUID(i.UID)
|
||||
}
|
||||
|
||||
const (
|
||||
imagesKey = "gallery:images:list"
|
||||
hashKey = "gallery:images:hash"
|
||||
|
||||
Reference in new issue
Block a user