do not bother with favicon stuff for now

master
nate smith 2019-09-09 13:22:28 -05:00
parent 7678d529b4
commit 2a4fef7566
1 changed files with 1 additions and 8 deletions

View File

@ -42,8 +42,7 @@ type User struct {
PageTitle string `json:"title"` // Title of user's HTML page, if they have one PageTitle string `json:"title"` // Title of user's HTML page, if they have one
Mtime int64 `json:"mtime"` // Timestamp representing the last time a user's index.html was modified Mtime int64 `json:"mtime"` // Timestamp representing the last time a user's index.html was modified
// Town additions // Town additions
DefaultPage bool `json:"default"` // Whether or not user has updated their default index.html DefaultPage bool `json:"default"` // Whether or not user has updated their default index.html
Favicon string `json:"favicon"` // URL to a small image representing the user
} }
type TildeData struct { type TildeData struct {
@ -132,11 +131,6 @@ func detectDefaultPageFor(username string) bool {
return true return true
} }
func detectFaviconFor(username string) string {
// TODO
return "TODO.jpg"
}
func getUsers() (users []User) { func getUsers() (users []User) {
// For the purposes of this program, we discover users via: // For the purposes of this program, we discover users via:
// - presence in /home/ // - presence in /home/
@ -162,7 +156,6 @@ func getUsers() (users []User) {
PageTitle: pageTitleFor(username), PageTitle: pageTitleFor(username),
Mtime: mtimeFor(username), Mtime: mtimeFor(username),
DefaultPage: detectDefaultPageFor(username), DefaultPage: detectDefaultPageFor(username),
Favicon: detectFaviconFor(username),
} }
users = append(users, user) users = append(users, user)
} }