mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-06 04:42:36 +02:00
Add stream search, offset & limit, improved bans
This commit is contained in:
parent
72f11a2b15
commit
963e392cea
14 changed files with 298 additions and 65 deletions
|
@ -28,10 +28,10 @@ func (rt *_router) GetFollowersFollowing(w http.ResponseWriter, r *http.Request,
|
|||
// Check if client is asking for followers or following
|
||||
if strings.HasSuffix(r.URL.Path, "/followers") {
|
||||
// Get the followers from the database
|
||||
status, users, err = rt.db.GetUserFollowers(uid)
|
||||
status, users, err = rt.db.GetUserFollowers(uid, ctx.Auth.GetUserID())
|
||||
} else {
|
||||
// Get the following users from the database
|
||||
status, users, err = rt.db.GetUserFollowing(uid)
|
||||
status, users, err = rt.db.GetUserFollowing(uid, ctx.Auth.GetUserID())
|
||||
}
|
||||
|
||||
// Send a 500 response if there was an error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue