提交 a3d2e97b authored 作者: Whispa's avatar Whispa

commit

上级 65a05def
......@@ -119,7 +119,7 @@ public class PostController {
postHashtagRepository.save(hashtag);
});
contentList.forEach(f -> {
List<ContentTag> tagList = new ArrayList<>(f.tagList);
List<ContentTag> tagList = new ArrayList<>(f.contentTags);
Content content = new Content();
content.setPost(finalNPost);
content.setThumbnail(f.getThumbnail());
......
......@@ -53,8 +53,6 @@ public class Content extends Model {
this.size = size;
}
@OneToMany(mappedBy = "content")
public List<ContentTag> tagList = new ArrayList<>();
public String getThumbnail() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论