images: Fix cache busting of image text filter

See #9238
This commit is contained in:
Bjørn Erik Pedersen
2021-12-07 11:48:48 +01:00
parent 6c3bc5ebad
commit e61cdf335f
15 changed files with 3 additions and 4 deletions

View File

@@ -46,9 +46,9 @@ func (*Filters) Text(text string, options ...interface{}) gift.Filter {
linespacing: 2,
}
var opt map[string]interface{}
var opt maps.Params
if len(options) > 0 {
opt := maps.MustToParamsAndPrepare(options[0])
opt = maps.MustToParamsAndPrepare(options[0])
for option, v := range opt {
switch option {
case "color":
@@ -62,7 +62,6 @@ func (*Filters) Text(text string, options ...interface{}) gift.Filter {
case "linespacing":
tf.linespacing = cast.ToInt(v)
}
}
}