mirror of
https://github.com/versia-pub/versia-go.git
synced 2026-03-13 20:49:15 +01:00
fix: /api/users/:id shouldn't return remote users
This commit is contained in:
parent
601ecd1124
commit
7d51385ad9
5 changed files with 7 additions and 7 deletions
|
|
@ -14,7 +14,7 @@ func (i *Handler) GetUser(c *fiber.Ctx) error {
|
|||
})
|
||||
}
|
||||
|
||||
u, err := i.userService.GetUserByID(c.UserContext(), parsedRequestedUserID)
|
||||
u, err := i.userService.GetLocalUserByID(c.UserContext(), parsedRequestedUserID)
|
||||
if err != nil {
|
||||
i.log.Error(err, "Failed to query user", "id", parsedRequestedUserID)
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ func (i *Handler) GetLysandUser(c *fiber.Ctx) error {
|
|||
})
|
||||
}
|
||||
|
||||
u, err := i.userService.GetUserByID(c.UserContext(), parsedRequestedUserID)
|
||||
u, err := i.userService.GetLocalUserByID(c.UserContext(), parsedRequestedUserID)
|
||||
if err != nil {
|
||||
i.log.Error(err, "Failed to query user", "id", parsedRequestedUserID)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue