fix: the order of contributors for posts is not fixed

pull/5279/head
guqing 2024-01-30 12:02:48 +08:00
parent a4e862cfc4
commit a5b0e866bd
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ public class PostServiceImpl extends AbstractContentService implements PostServi
return Flux.empty(); return Flux.empty();
} }
return Flux.fromIterable(usernames) return Flux.fromIterable(usernames)
.flatMap(userService::getUserOrGhost) .concatMap(userService::getUserOrGhost)
.map(user -> { .map(user -> {
Contributor contributor = new Contributor(); Contributor contributor = new Contributor();
contributor.setName(user.getMetadata().getName()); contributor.setName(user.getMetadata().getName());