Merge pull request #5279 from guqing/bugfix/order-for-contributors

fix: the order of contributors for posts is not fixed
pull/5282/head
John Niang 2024-01-30 16:27:07 +08:00 committed by GitHub
commit c792cef52f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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.fromIterable(usernames)
.flatMap(userService::getUserOrGhost)
.concatMap(userService::getUserOrGhost)
.map(user -> {
Contributor contributor = new Contributor();
contributor.setName(user.getMetadata().getName());