Userpage now is never nil (fix edit userpage not working for certain users)

This commit is contained in:
Howl 2016-11-16 17:36:01 +01:00
parent 9df1fd9e97
commit 4036772803

View File

@ -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
} }