Skip to content

Commit

Permalink
🚧 fix tags and categories is null not storage
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Sep 30, 2017
1 parent a671381 commit 539dcb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/tale/service/ContentsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public Integer publish(Contents contents) {
public void updateArticle(Contents contents) {
contents.setModified(DateKit.nowUnix());
contents.setContent(EmojiParser.parseToAliases(contents.getContent()));
contents.setTags(contents.getTags() != null ? contents.getTags() : "");
contents.setCategories(contents.getCategories() != null ? contents.getCategories() : "");

String tags = contents.getTags();
String categories = contents.getCategories();
Expand Down

0 comments on commit 539dcb1

Please sign in to comment.