mirror of https://github.com/halo-dev/halo
fix: the order of contributors for posts is not fixed
parent
a4e862cfc4
commit
a5b0e866bd
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue