mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-10 22:25:39 +00:00
aa54bfa48d
Batch of fixes from a review of the help-center branch. Slugs. A long title made a slug longer than the 200 char cap, so the save failed with a slug error on a form that has no slug field. The "-2" dedup suffix could also push a slug past the cap after validation ran, which locked the article out of every later edit. Slug generation now truncates to fit, and collections get the same dedup pass articles already had. Accented titles kept losing letters, so accents now fold to their ASCII base. Titles in scripts with no ASCII form still fall back to a random slug. Locales. Removing a language from a help center stranded its collections and articles. They had no admin UI path and no public URL, but stayed in the AI index. Dropping a language that still holds content is now rejected. Only languages the help center allows today are checked, so an existing orphan can still be saved. Theme. The luminance check only parsed 3 and 6 digit hex while the sanitizer accepts 4 and 8 digit too, so an 8 digit header colour fell back to dark text on a dark header. The free text colour fields had no validation, so a bad value was silently thrown away on save while the toast said it worked. The article editor was missing --hc-accent-ink, which made button links invisible while editing. Embeddings. The chunker changed the text it emits but the fingerprint did not change, so nothing already indexed was ever re-chunked. The chunker version now feeds the fingerprint. Deleting a collection or a help center left the cascaded articles' vectors behind until the next sweep, so those now clean up on delete. Public API. The public JSON endpoints returned author name and avatar even when the theme had authors turned off. Media and search. Anonymous /uploads requests now hit a rate limit before the DB lookup, and served files carry a one day cache header. S3 redirects are no-store because a presigned URL expires. Public search now enforces the same two character floor the typeahead uses, so a one character query cannot seq-scan every article body.
92 lines
3.7 KiB
Modula-2
92 lines
3.7 KiB
Modula-2
module github.com/abhinavxd/libredesk
|
|
|
|
go 1.25.0
|
|
|
|
require (
|
|
github.com/abhinavxd/ssrfguard v0.1.0
|
|
github.com/alicebob/miniredis/v2 v2.32.1
|
|
github.com/coreos/go-oidc/v3 v3.11.0
|
|
github.com/disintegration/imaging v1.6.2
|
|
github.com/emersion/go-imap/v2 v2.0.0-beta.3
|
|
github.com/emersion/go-message v0.18.1
|
|
github.com/fasthttp/websocket v1.5.9
|
|
github.com/ferluci/fast-realip v1.0.1
|
|
github.com/gabriel-vasile/mimetype v1.4.11
|
|
github.com/golang-jwt/jwt/v5 v5.2.2
|
|
github.com/google/uuid v1.6.0
|
|
github.com/jaytaylor/html2text v0.0.0-20230321000545-74c2419ad056
|
|
github.com/jhillyerd/enmime v1.2.0
|
|
github.com/jmoiron/sqlx v1.4.0
|
|
github.com/knadh/go-i18n v0.1.0
|
|
github.com/knadh/goyesql/v2 v2.2.0
|
|
github.com/knadh/koanf/parsers/json v0.1.0
|
|
github.com/knadh/koanf/parsers/toml v0.1.0
|
|
github.com/knadh/koanf/providers/confmap v0.1.0
|
|
github.com/knadh/koanf/providers/env/v2 v2.0.0
|
|
github.com/knadh/koanf/providers/file v0.1.0
|
|
github.com/knadh/koanf/providers/posflag v0.1.0
|
|
github.com/knadh/koanf/providers/rawbytes v0.1.0
|
|
github.com/knadh/koanf/v2 v2.1.1
|
|
github.com/knadh/smtppool v1.1.0
|
|
github.com/knadh/stuffbin v1.3.0
|
|
github.com/lib/pq v1.10.9
|
|
github.com/mackee/go-readability v0.3.1
|
|
github.com/microcosm-cc/bluemonday v1.0.27
|
|
github.com/mr-karan/balance v0.0.0-20250317053523-d32c6ade6cf1
|
|
github.com/pkoukk/tiktoken-go v0.1.8
|
|
github.com/pkoukk/tiktoken-go-loader v0.0.2
|
|
github.com/redis/go-redis/v9 v9.5.5
|
|
github.com/rhnvrm/simples3 v0.10.1
|
|
github.com/spf13/pflag v1.0.6
|
|
github.com/stretchr/testify v1.10.0
|
|
github.com/valyala/fasthttp v1.62.0
|
|
github.com/volatiletech/null/v9 v9.0.0
|
|
github.com/yuin/goldmark v1.8.4
|
|
github.com/zerodha/fastglue v1.8.0
|
|
github.com/zerodha/logf v0.5.5
|
|
github.com/zerodha/simplesessions/stores/redis/v3 v3.0.0
|
|
github.com/zerodha/simplesessions/v3 v3.0.0
|
|
golang.org/x/crypto v0.52.0
|
|
golang.org/x/mod v0.35.0
|
|
golang.org/x/net v0.55.0
|
|
golang.org/x/oauth2 v0.27.0
|
|
golang.org/x/text v0.37.0
|
|
)
|
|
|
|
require (
|
|
cloud.google.com/go/compute/metadata v0.3.0 // indirect
|
|
github.com/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302 // indirect
|
|
github.com/andybalholm/brotli v1.1.1 // indirect
|
|
github.com/aymerick/douceur v0.2.0 // indirect
|
|
github.com/cention-sany/utf7 v0.0.0-20170124080048-26cad61bd60a // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
|
github.com/dlclark/regexp2 v1.11.5 // indirect
|
|
github.com/emersion/go-sasl v0.0.0-20231106173351-e73c9f7bad43 // indirect
|
|
github.com/fasthttp/router v1.5.0 // indirect
|
|
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
|
github.com/go-jose/go-jose/v4 v4.1.4 // indirect
|
|
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
|
|
github.com/gogs/chardet v0.0.0-20211120154057-b7413eaefb8f // indirect
|
|
github.com/gorilla/css v1.0.1 // indirect
|
|
github.com/klauspost/compress v1.18.0 // indirect
|
|
github.com/knadh/koanf/maps v0.1.2 // indirect
|
|
github.com/mattn/go-runewidth v0.0.16 // indirect
|
|
github.com/mitchellh/copystructure v1.2.0 // indirect
|
|
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
|
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
|
github.com/pelletier/go-toml v1.9.5 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
github.com/savsgio/gotils v0.0.0-20240303185622-093b76447511 // indirect
|
|
github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect
|
|
github.com/stretchr/objx v0.5.2 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/yuin/gopher-lua v1.1.1 // indirect
|
|
golang.org/x/image v0.41.0 // indirect
|
|
golang.org/x/sys v0.45.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|