diff --git a/src/main/java/org/ntlab/nemophila/models/accounts/Account.java b/src/main/java/org/ntlab/nemophila/models/accounts/Account.java index ca18979..76ff5a4 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/Account.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/Account.java @@ -55,7 +55,7 @@ //新規投稿 - public Post createPost(int rate, String genre, String comment, String image1, String image2, String image3, Shop shop) { + public Post createPost(int rate, String genre, String comment, String image1, String image2, String image3, String sid) { Post post = new Post(); post.setRate(rate); @@ -66,7 +66,7 @@ post.setImage1(image1); post.setImage2(image2); post.setImage3(image3); - post.setId(shop.getId()); + post.setId(sid); posts.put(post.getId(), post);