mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
querystring helper for debugging image generation.
This commit is contained in:
5
utils.go
5
utils.go
@@ -160,6 +160,11 @@ func generateClientList(code string, event *nostr.Event) []ClientReference {
|
||||
}
|
||||
|
||||
func getPreviewStyle(r *http.Request) string {
|
||||
if style := r.URL.Query().Get("style"); style != "" {
|
||||
// debug mode
|
||||
return style
|
||||
}
|
||||
|
||||
ua := strings.ToLower(r.Header.Get("User-Agent"))
|
||||
accept := r.Header.Get("Accept")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user