提交 6f894555 authored 作者: Whispa's avatar Whispa

commit

上级 a3d2e97b
......@@ -230,7 +230,7 @@ public class PostController {
String string = UploadController.sendFile(sb.toString(), api);
list.add(string);
Content content = new Content();
//content.setPost(post);
content.setPost(post);
content.setImage(true);
// content.path = store.toFile().getAbsolutePath();
content.setContent(string);
......@@ -260,7 +260,7 @@ public class PostController {
hashtag;
PostHashtag postHashtag = new PostHashtag();
postHashtag.setHashtag(hashtag);
//postHashtag.setPost(post);
postHashtag.setPost(post);
if( !postHashtagRepository.existsByHashtagNameAndPostId(hashtag.getName(),post.getId()) ) {
post.hashtagList.add(postHashtag);
}
......@@ -306,7 +306,7 @@ public class PostController {
contentTag.setTag(tag);
contentTag.setX(position.getX());
contentTag.setY(position.getY());
//contentTag.setContent(content);
contentTag.setContent(content);
content.contentTags.add(contentTag);
}
index++;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论