Userpage now is never nil (fix edit userpage not working for certain users)
This commit is contained in:
parent
9df1fd9e97
commit
4036772803
|
@ -329,6 +329,9 @@ func UserUserpageGET(md common.MethodData) common.CodeMessager {
|
||||||
md.Err(err)
|
md.Err(err)
|
||||||
return Err500
|
return Err500
|
||||||
}
|
}
|
||||||
|
if r.Userpage == nil {
|
||||||
|
r.Userpage = new(string)
|
||||||
|
}
|
||||||
r.Code = 200
|
r.Code = 200
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user