Skip to content

Commit 48f3ddd

Browse files
committed
chore: 自动去除井盖
1 parent 16c7ce5 commit 48f3ddd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bot/handlers_admin.go

+3
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ func setArtworkTags(ctx context.Context, bot *telego.Bot, message telego.Message
396396
}
397397
}
398398
}
399+
for i, tag := range tags {
400+
tags[i] = strings.TrimPrefix(tag, "#")
401+
}
399402
if err := service.UpdateArtworkTagsByURL(ctx, artwork.SourceURL, tags); err != nil {
400403
telegram.ReplyMessage(bot, message, "更新作品标签失败: "+err.Error())
401404
return

cmd/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
const (
10-
Version string = "0.7.3"
10+
Version string = "0.7.4"
1111
)
1212

1313
var VersionCmd = &cobra.Command{

0 commit comments

Comments
 (0)