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
|
WEBSITE=https://REPLACEME.p.projectsegfau.lt
|
||||||
DESCRIPTION=""
|
DESCRIPTION=""
|
||||||
EMAIL=
|
EMAIL=
|
||||||
|
MATRIX=
|
||||||
|
FEDIVERSE=
|
||||||
LOCATION=
|
LOCATION=
|
||||||
|
@ -21,14 +21,16 @@ type Userstruct struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Userinfo struct {
|
type Userinfo struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
FullName string `json:"fullName"`
|
FullName string `json:"fullName"`
|
||||||
Desc string `json:"desc"`
|
Desc string `json:"desc"`
|
||||||
Online bool `json:"online"`
|
Online bool `json:"online"`
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
Website string `json:"website"`
|
Matrix string `json:"matrix"`
|
||||||
Capsule string `json:"capsule"`
|
Fediverse string `json:"fediverse"`
|
||||||
Loc string `json:"loc"`
|
Website string `json:"website"`
|
||||||
|
Capsule string `json:"capsule"`
|
||||||
|
Loc string `json:"loc"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func userdata(username, usersonline string) Userinfo {
|
func userdata(username, usersonline string) Userinfo {
|
||||||
@ -61,6 +63,8 @@ func userdata(username, usersonline string) Userinfo {
|
|||||||
user.Website = viper.GetString("WEBSITE")
|
user.Website = viper.GetString("WEBSITE")
|
||||||
user.Desc = viper.GetString("DESCRIPTION")
|
user.Desc = viper.GetString("DESCRIPTION")
|
||||||
user.Email = viper.GetString("EMAIL")
|
user.Email = viper.GetString("EMAIL")
|
||||||
|
user.Matrix = viper.GetString("MATRIX")
|
||||||
|
user.Fediverse = viper.GetString("FEDIVERSE")
|
||||||
user.Loc = viper.GetString("LOCATION")
|
user.Loc = viper.GetString("LOCATION")
|
||||||
if isonline == true {
|
if isonline == true {
|
||||||
user.Online = true
|
user.Online = true
|
||||||
|
Loading…
Reference in New Issue
Block a user