diff --git a/src/main/java/com/sanbosillok/sanbosillokserver/api/post/domain/Post.java b/src/main/java/com/sanbosillok/sanbosillokserver/api/post/domain/Post.java index 7b1672e..2a11c7d 100644 --- a/src/main/java/com/sanbosillok/sanbosillokserver/api/post/domain/Post.java +++ b/src/main/java/com/sanbosillok/sanbosillokserver/api/post/domain/Post.java @@ -34,6 +34,10 @@ public Post(String title, String content, String lastModifier, PostStatus status this.status = status; } + public String getLastModifier() { + return lastModifier != null ? lastModifier : "Unknown"; + } + public void update(String content, String lastModifier) { this.content = content; this.lastModifier = lastModifier;