collapse the danger honks by default when logged out

This commit is contained in:
Ted Unangst 2023-02-22 15:04:24 -05:00
parent b6efa7d4bd
commit ed13b68989
2 changed files with 7 additions and 1 deletions

View File

@ -407,6 +407,12 @@ func unsee(honks []*Honk, userid int64) {
h.Open = ""
}
}
} else {
for _, h := range honks {
if h.Precis != "" {
h.Open = ""
}
}
}
}

View File

@ -52,7 +52,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 class="content">{{ .HTML }}
{{ with .Time }}