Added a .gitignore file. Added group caching. Improved the forum list. Added the Member group. Opening posts are now parsed properly. Fixed a bug where the avatar of the opening poster was applied to everyone. Only admins can see moderation options now.
33 lines
406 B
Go
33 lines
406 B
Go
package main
|
|
import "html/template"
|
|
|
|
type Topic struct
|
|
{
|
|
ID int
|
|
Title string
|
|
Content string
|
|
CreatedBy int
|
|
Is_Closed bool
|
|
Sticky bool
|
|
CreatedAt string
|
|
ParentID int
|
|
Status string
|
|
}
|
|
|
|
type TopicUser struct
|
|
{
|
|
ID int
|
|
Title string
|
|
Content interface{}
|
|
CreatedBy int
|
|
Is_Closed bool
|
|
Sticky bool
|
|
CreatedAt string
|
|
ParentID int
|
|
Status string
|
|
|
|
CreatedByName string
|
|
Avatar string
|
|
Css template.CSS
|
|
}
|