Skip to content

Commit

Permalink
Merge pull request #511 from CSUSTers/dev
Browse files Browse the repository at this point in the history
hotfix: nocache param of get sticker
  • Loading branch information
hugefiver authored Dec 27, 2024
2 parents fce131c + ae9e68a commit d463c1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ secrets.HARBOR_URL }}
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
retry: 1000
7 changes: 7 additions & 0 deletions base/sticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,11 @@ func parseOpts(text string) (map[string]string, error) {
if slices.Contains([]string{"", "webp", "jpg", "jpeg", "png", "apng", "mp4", "gif", "webm"}, f) {
ret[k] = v
}
case "!pack", "!p", "nopack", "pack!", "p!":
v = "false"
fallthrough
case "pack", "p":
k = "pack"
if v == "false" {
ret[k] = "false"
} else {
Expand All @@ -839,6 +843,9 @@ func parseOpts(text string) (map[string]string, error) {
if slices.Contains([]string{"", "webp", "jpg", "jpeg", "png", "gif"}, f) {
ret[k] = v
}
// other available params without check
case "nocache":
ret[k] = v
}
}
return ret, nil
Expand Down

0 comments on commit d463c1f

Please sign in to comment.