fix: hide blocked user content
This commit is contained in:
@@ -158,10 +158,11 @@ func normalizeClock(raw string) (string, error) {
|
||||
return t, nil
|
||||
}
|
||||
|
||||
// Search returns users matching the query (handle or name substring).
|
||||
// Search returns the `offset`/`limit` page of users matching the query
|
||||
// (handle or name substring) plus the total match count for pagination.
|
||||
// Used by the public user-search endpoint on the /search page.
|
||||
func (s *UserService) Search(ctx context.Context, q string, limit int) ([]model.User, error) {
|
||||
return s.users.Search(ctx, q, limit)
|
||||
func (s *UserService) Search(ctx context.Context, q string, limit, offset int) ([]model.User, int, error) {
|
||||
return s.users.Search(ctx, q, limit, offset)
|
||||
}
|
||||
|
||||
// GetReadingPrefs returns the user's reading prefs blob (opaque JSON).
|
||||
|
||||
Reference in New Issue
Block a user