add matrix & fedi to meta-info
This commit is contained in:
parent
0474fa31fd
commit
80ee0ad38e
@ -3,4 +3,6 @@ GEMINI_CAPSULE=gemini://REPLACEME.p.projectsegfau.lt
|
||||
WEBSITE=https://REPLACEME.p.projectsegfau.lt
|
||||
DESCRIPTION=""
|
||||
EMAIL=
|
||||
MATRIX=
|
||||
FEDIVERSE=
|
||||
LOCATION=
|
||||
|
@ -26,6 +26,8 @@ type Userinfo struct {
|
||||
Desc string `json:"desc"`
|
||||
Online bool `json:"online"`
|
||||
Email string `json:"email"`
|
||||
Matrix string `json:"matrix"`
|
||||
Fediverse string `json:"fediverse"`
|
||||
Website string `json:"website"`
|
||||
Capsule string `json:"capsule"`
|
||||
Loc string `json:"loc"`
|
||||
@ -61,6 +63,8 @@ func userdata(username, usersonline string) Userinfo {
|
||||
user.Website = viper.GetString("WEBSITE")
|
||||
user.Desc = viper.GetString("DESCRIPTION")
|
||||
user.Email = viper.GetString("EMAIL")
|
||||
user.Matrix = viper.GetString("MATRIX")
|
||||
user.Fediverse = viper.GetString("FEDIVERSE")
|
||||
user.Loc = viper.GetString("LOCATION")
|
||||
if isonline == true {
|
||||
user.Online = true
|
||||
|
Loading…
Reference in New Issue
Block a user