diff options
Diffstat (limited to 'app/src/main/java/app/fedilab/android/mastodon/client/entities/lemmy/LemmyPost.java')
-rw-r--r-- | app/src/main/java/app/fedilab/android/mastodon/client/entities/lemmy/LemmyPost.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/app/fedilab/android/mastodon/client/entities/lemmy/LemmyPost.java b/app/src/main/java/app/fedilab/android/mastodon/client/entities/lemmy/LemmyPost.java index b63a9f21b..122e6e3bc 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/client/entities/lemmy/LemmyPost.java +++ b/app/src/main/java/app/fedilab/android/mastodon/client/entities/lemmy/LemmyPost.java @@ -33,8 +33,8 @@ public class LemmyPost implements Serializable { public Comment comment; @SerializedName("creator") public Creator creator; - @SerializedName("community") - public Community community; + /*@SerializedName("community") + public Community community;*/ @SerializedName("counts") public Counts counts; @SerializedName("creator_banned_from_community") @@ -63,6 +63,9 @@ public class LemmyPost implements Serializable { status.id = lemmyPost.comment == null ? lemmyPost.post.id : lemmyPost.comment.id; if (lemmyPost.comment != null) { status.in_reply_to_id = lemmyPost.comment.post_id; + status.lemmy_post_id = null; + } else { + status.lemmy_post_id = lemmyPost.post.id; } status.content = lemmyPost.comment == null ? lemmyPost.post.name : lemmyPost.comment.content; status.visibility = "public"; |