From 4f6476c807dfb8e96ec6506c6bf7c2ffb58373b6 Mon Sep 17 00:00:00 2001 From: sk Date: Tue, 17 Jan 2023 02:17:40 +0100 Subject: [PATCH] fix "0" reply to ID --- .../java/org/joinmastodon/android/model/ScheduledStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/ScheduledStatus.java b/mastodon/src/main/java/org/joinmastodon/android/model/ScheduledStatus.java index cb08ad1f3..02746c771 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/ScheduledStatus.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/ScheduledStatus.java @@ -66,7 +66,7 @@ public class ScheduledStatus extends BaseModel implements DisplayItemsParent{ s.id = id; s.mediaAttachments = mediaAttachments; s.createdAt = scheduledAt; - s.inReplyToId = "" + params.inReplyToId; + s.inReplyToId = params.inReplyToId > 0 ? "" + params.inReplyToId : null; s.content = s.text = params.text; s.spoilerText = params.spoilerText; s.visibility = params.visibility;