mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-04-28 12:05:06 +03:00
Переключатель кеша в озу, небольшие улучшения ксс, фикс нсфв, фикс максимального размера кеша
This commit is contained in:
parent
32c61ec8ea
commit
048bb470ab
7 changed files with 88 additions and 47 deletions
|
@ -36,13 +36,12 @@ func (s skunkyart) GRUser() {
|
|||
for _, x := range g.Gruser.Page.Modules {
|
||||
switch x.Name {
|
||||
case "about", "group_about":
|
||||
switch g.Owner.Group {
|
||||
case true:
|
||||
if g.Owner.Group {
|
||||
var about = &x.ModuleData.GroupAbout
|
||||
group.Group = true
|
||||
group.CreationDate = x.ModuleData.GroupAbout.FoundatedAt.UTC().String()
|
||||
group.About.DescriptionFormatted = ParseDescription(about.Description)
|
||||
case false:
|
||||
} else if false {
|
||||
group.About.A = x.ModuleData.About
|
||||
var about = &group.About.A
|
||||
group.CreationDate = time.Unix(time.Now().Unix()-x.ModuleData.About.RegDate, 0).UTC().String()
|
||||
|
@ -186,6 +185,14 @@ func (s skunkyart) Deviation(author, postname string) {
|
|||
return
|
||||
}
|
||||
|
||||
if post.Post.Deviation.NSFW {
|
||||
s.Writer.WriteHeader(403)
|
||||
wr(s.Writer, `<html><link rel="stylesheet" href="`+
|
||||
UrlBuilder("stylesheet")+
|
||||
`" /><h1>NSFW content are disabled on this instance.</h1></html>`)
|
||||
return
|
||||
}
|
||||
|
||||
if post.Post.Comments.Total <= 50 {
|
||||
post.Post.Comments.Cursor = ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue