mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02:00
Add follow status to GetUserProfile
This commit is contained in:
parent
9968f9e66f
commit
09adc06e18
4 changed files with 9 additions and 3 deletions
|
@ -22,7 +22,7 @@ func (rt *_router) GetUserProfile(w http.ResponseWriter, r *http.Request, ps htt
|
|||
}
|
||||
|
||||
// Get user profile
|
||||
status, profile, err := rt.db.GetUserProfile(uid)
|
||||
status, profile, err := rt.db.GetUserProfile(uid, ctx.Auth.GetUserID())
|
||||
|
||||
if err != nil {
|
||||
helpers.SendInternalError(err, "Database error: GetUserProfile", w, rt.baseLogger)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue