feat:完善信息,增加socket

This commit is contained in:
henry
2022-01-27 14:50:52 +08:00
parent 0368be6f11
commit 4ae37b9b4d
30 changed files with 325 additions and 92 deletions

View File

@ -62,8 +62,7 @@ func (m *UserInstance) GetAvatarAttribute(domain string) string {
if m.Avatar == "" {
return ""
}
compile := "^(http|https):"
if utils.ValidateCompile(m.Avatar, compile) {
if utils.ValidateCompile(m.Avatar, "^(http|https):") {
return m.Avatar
}
return domain + m.Avatar