history/mine table column Language -> Type (sort key type, sortVal handles it)
/api/public and /api/mine rows gain type: file extension (lowercase, no dot) for attachment pastes, stored language otherwise, default text
paste page stats label Language -> Type; summary line and get-paste JSON gain the same type value
store list queries LEFT JOIN attachments for the filename; helpers tested in internal/api/issue235_type_test.go
Verified: go build + go test pass; local server rendered check via CDP shows Type header and badges python/text/pdf for text vs file pastes; mine API returns type correctly.
Fix attempt 1. Ref #235.
- history/mine table column Language -> Type (sort key `type`, sortVal handles it)
- /api/public and /api/mine rows gain `type`: file extension (lowercase, no dot) for attachment pastes, stored language otherwise, default `text`
- paste page stats label Language -> Type; summary line and get-paste JSON gain the same type value
- store list queries LEFT JOIN attachments for the filename; helpers tested in internal/api/issue235_type_test.go
Verified: go build + go test pass; local server rendered check via CDP shows Type header and badges python/text/pdf for text vs file pastes; mine API returns type correctly.
- history/mine table column 'Language' -> 'Type' (data-sort key 'type')
- /api/public and /api/mine rows gain a 'type' field: file extension for
attachment pastes, stored language otherwise (default 'text')
- paste page stats label 'Language' -> 'Type'; summary line uses the same
label; get-paste JSON gains 'type'
- store list queries LEFT JOIN attachments to expose the filename
- table.js sorting accepts the 'type' key
fen
merged commit 5075374abe into dev2026-09-10 22:14:57 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fix attempt 1. Ref #235.
type, sortVal handles it)type: file extension (lowercase, no dot) for attachment pastes, stored language otherwise, defaulttextVerified: go build + go test pass; local server rendered check via CDP shows Type header and badges python/text/pdf for text vs file pastes; mine API returns type correctly.