mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 11:44:34 +01:00
always use text-image on twitter.
nostr:note1j8kk28f6czmgfr2cxw4xrup2dl9ewxhwwqgw04k7wrg4psxa9tkq4h0emk
This commit is contained in:
@@ -96,8 +96,16 @@ func renderEvent(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
useTextImage := (data.event.Kind == 1 || data.event.Kind == 30023) &&
|
||||
data.image == "" && data.video == "" && len(data.event.Content) > 133
|
||||
useTextImage := false
|
||||
|
||||
if data.event.Kind == 1 || data.event.Kind == 30023 {
|
||||
if data.image == "" && data.video == "" && len(data.event.Content) > 133 {
|
||||
useTextImage = true
|
||||
}
|
||||
if style == StyleTwitter {
|
||||
useTextImage = true
|
||||
}
|
||||
}
|
||||
|
||||
if tgiv := r.URL.Query().Get("tgiv"); tgiv == "true" || (style == StyleTelegram && tgiv != "false") {
|
||||
// do telegram instant preview (only works on telegram mobile apps, not desktop)
|
||||
|
||||
Reference in New Issue
Block a user