feat:完善信息,增加socket
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user