diff --git a/pom.xml b/pom.xml index 6b766af..1784432 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ UTF-8 11 - 0.3.1-SNAPSHOT + 0.3.2-SNAPSHOT diff --git a/src/main/java/de/bstly/board/controller/CommentController.java b/src/main/java/de/bstly/board/controller/CommentController.java index ae0e4f7..c9ff531 100644 --- a/src/main/java/de/bstly/board/controller/CommentController.java +++ b/src/main/java/de/bstly/board/controller/CommentController.java @@ -174,6 +174,8 @@ public class CommentController extends BaseController { vote.setAuthor(getCurrentUsername()); voteManager.save(vote); + commentManager.applyMetadata(getCurrentUsername(), comment); + return comment; } diff --git a/src/main/java/de/bstly/board/controller/EntryController.java b/src/main/java/de/bstly/board/controller/EntryController.java index 1a809a1..72de133 100644 --- a/src/main/java/de/bstly/board/controller/EntryController.java +++ b/src/main/java/de/bstly/board/controller/EntryController.java @@ -161,6 +161,8 @@ public class EntryController extends BaseController { vote.setAuthor(getCurrentUsername()); voteManager.save(vote); + entryManager.applyMetadata(getCurrentUsername(), entry); + return entry; }