remove spicy peppers sensitivity
This commit is contained in:
parent
fea6f70291
commit
e15d81638b
|
@ -25,7 +25,6 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
@ -732,8 +731,6 @@ func subsub(user *WhatAbout, xid string) {
|
||||||
deliverate(0, user.Name, xid, msg)
|
deliverate(0, user.Name, xid, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
var re_spicy = regexp.MustCompile("^(\U0001f336\ufe0f?){3,}")
|
|
||||||
|
|
||||||
func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
|
func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
|
||||||
dt := h.Date.Format(time.RFC3339)
|
dt := h.Date.Format(time.RFC3339)
|
||||||
var jo junk.Junk
|
var jo junk.Junk
|
||||||
|
@ -780,9 +777,6 @@ func jonkjonk(user *WhatAbout, h *Honk) (junk.Junk, junk.Junk) {
|
||||||
jo["content"] = mentionize(h.Noise)
|
jo["content"] = mentionize(h.Noise)
|
||||||
if strings.HasPrefix(h.Precis, "DZ:") {
|
if strings.HasPrefix(h.Precis, "DZ:") {
|
||||||
jo["sensitive"] = true
|
jo["sensitive"] = true
|
||||||
} else if peppers := re_spicy.FindString(h.Noise); peppers != "" {
|
|
||||||
jo["summary"] = peppers
|
|
||||||
jo["sensitive"] = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var tags []junk.Junk
|
var tags []junk.Junk
|
||||||
|
|
|
@ -2,6 +2,8 @@ changelog
|
||||||
|
|
||||||
-- next
|
-- next
|
||||||
|
|
||||||
|
- Remove sensitivity to spicy peppers.
|
||||||
|
|
||||||
+ Keep reply to setting during preview.
|
+ Keep reply to setting during preview.
|
||||||
|
|
||||||
+ Increase max thread retrieval depth to 10.
|
+ Increase max thread retrieval depth to 10.
|
||||||
|
|
|
@ -21,9 +21,6 @@ The honk back button will prefill the forms for replies.
|
||||||
A honk that begins with the danger zone indication, DZ:, will be marked
|
A honk that begins with the danger zone indication, DZ:, will be marked
|
||||||
sensitive, using the first line as a summary (spoiler text).
|
sensitive, using the first line as a summary (spoiler text).
|
||||||
|
|
||||||
Alternatively, a spicy honk that begins with three or more peppers (U+1F336)
|
|
||||||
will be marked sensitive as well, with a subject line consisting of peppers.
|
|
||||||
|
|
||||||
-- following
|
-- following
|
||||||
|
|
||||||
In order to follow somebody, you need to enter one of two identifiers.
|
In order to follow somebody, you need to enter one of two identifiers.
|
||||||
|
|
Loading…
Reference in New Issue