hide the danger zone for muggles
This commit is contained in:
parent
1b0a01df8f
commit
c6b4cb22f7
|
@ -381,7 +381,7 @@ func cleanupdb(arg string) {
|
|||
where = "dt < ? and whofore = 0 and convoy not in (select convoy from honks where whofore = 2 or whofore = 3)"
|
||||
sqlargs = append(sqlargs, expdate)
|
||||
}
|
||||
doordie(db, "delete from honks where " + where, sqlargs...)
|
||||
doordie(db, "delete from honks where "+where, sqlargs...)
|
||||
doordie(db, "delete from donks where honkid not in (select honkid from honks)")
|
||||
doordie(db, "delete from onts where honkid not in (select honkid from honks)")
|
||||
doordie(db, "delete from places where honkid not in (select honkid from honks)")
|
||||
|
|
18
fun.go
18
fun.go
|
@ -71,13 +71,19 @@ func reverbolate(userid int64, honks []*Honk) {
|
|||
h.Precis = unpucker(h.Precis)
|
||||
h.Noise = unpucker(h.Noise)
|
||||
h.Open = "open"
|
||||
if badword := unsee(zilences, h.Precis, h.Noise, h.Donks); badword != "" {
|
||||
if h.Precis == "" {
|
||||
h.Precis = badword
|
||||
if userid == -1 {
|
||||
if h.Precis != "" {
|
||||
h.Open = ""
|
||||
}
|
||||
} else {
|
||||
if badword := unsee(zilences, h.Precis, h.Noise, h.Donks); badword != "" {
|
||||
if h.Precis == "" {
|
||||
h.Precis = badword
|
||||
}
|
||||
h.Open = ""
|
||||
} else if h.Precis == "unspecified horror" {
|
||||
h.Precis = ""
|
||||
}
|
||||
h.Open = ""
|
||||
} else if h.Precis == "unspecified horror" {
|
||||
h.Precis = ""
|
||||
}
|
||||
h.HTPrecis, _ = filt.String(h.Precis)
|
||||
h.HTML, _ = filt.String(h.Noise)
|
||||
|
|
|
@ -39,7 +39,7 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|||
</header>
|
||||
<p>
|
||||
<details class="noise" {{ .Open }} >
|
||||
<summary>{{ .HTPrecis }}</summary>
|
||||
<summary>{{ .HTPrecis }}<p></summary>
|
||||
<p>{{ .HTPrecis }}
|
||||
<p>{{ .HTML }}
|
||||
{{ with .Place }}
|
||||
|
|
Loading…
Reference in New Issue