diff --git a/application/src/main/java/run/halo/app/theme/finders/vo/ContributorVo.java b/application/src/main/java/run/halo/app/theme/finders/vo/ContributorVo.java index 99eb599f1e..06396bc750 100644 --- a/application/src/main/java/run/halo/app/theme/finders/vo/ContributorVo.java +++ b/application/src/main/java/run/halo/app/theme/finders/vo/ContributorVo.java @@ -4,6 +4,7 @@ import lombok.ToString; import lombok.Value; import run.halo.app.core.extension.User; +import run.halo.app.extension.MetadataOperator; /** * A value object for {@link run.halo.app.core.extension.User}. @@ -14,7 +15,8 @@ @Value @ToString @Builder -public class ContributorVo { +public class ContributorVo implements ExtensionVoOperator { + String name; String displayName; @@ -25,6 +27,8 @@ public class ContributorVo { String permalink; + MetadataOperator metadata; + /** * Convert {@link User} to {@link ContributorVo}. * @@ -39,6 +43,7 @@ public static ContributorVo from(User user) { .avatar(user.getSpec().getAvatar()) .bio(user.getSpec().getBio()) .permalink(permalink) + .metadata(user.getMetadata()) .build(); } }