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 827fb82..b681080 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/Account.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/Account.java @@ -18,6 +18,9 @@ @JsonProperty("token") private String token; + @JsonIgnore + private HashMap posts = new HashMap<>(); + //Accountから対応するFriendManagerを1つ呼び出す(初期化) @JsonIgnore FriendManager friendManager = new FriendManager(); @@ -58,8 +61,6 @@ this.token = token; } - private HashMap posts = new HashMap<>(); - //新規投稿 public Post createPost(Shop shop, int rate, String genre, String comment, String image1, String image2, String image3) { Post post = new Post(this, genre, rate, shop);