aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/item.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/feed/item.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/feed/item.go b/internal/feed/item.go
index f7dd506..b45f5c5 100644
--- a/internal/feed/item.go
+++ b/internal/feed/item.go
@@ -17,6 +17,7 @@ import (
type feedImage struct {
image []byte
mime string
+ name string
}
type Item struct {
@@ -69,8 +70,8 @@ func (item *Item) AddReason(reason string) {
}
}
-func (item *Item) addImage(img []byte, mime string) int {
- i := feedImage{img, mime}
+func (item *Item) addImage(img []byte, mime string, name string) int {
+ i := feedImage{img, mime, name}
item.images = append(item.images, i)
return len(item.images)
}