public string Text { get; set; }
public long? InReplyToStatusId { get; set; }
public IReadOnlyList<long> MediaIds { get; set; }
+ public bool AutoPopulateReplyMetadata { get; set; }
public IReadOnlyList<long> ExcludeReplyUserIds { get; set; }
public string AttachmentUrl { get; set; }
}
};
var replyToPost = this.inReplyTo != null ? this._statuses[this.inReplyTo.Item1] : null;
- if (replyToPost != null)
+ if (replyToPost != null && !status.Text.Contains("RT @"))
{
+ status.AutoPopulateReplyMetadata = true;
+
// ReplyToList のうち autoPopulatedUserIds に含まれていないユーザー ID を抽出
status.ExcludeReplyUserIds = replyToPost.ReplyToList.Select(x => x.Item1).Except(autoPopulatedUserIds)
.ToArray();
return;
}
- var autoPopulateReplyMetadata = false;
- if (param.InReplyToStatusId != null && !param.Text.Contains("RT @"))
- autoPopulateReplyMetadata = true;
-
var response = await this.Api.StatusesUpdate(param.Text, param.InReplyToStatusId, param.MediaIds,
- autoPopulateReplyMetadata, param.ExcludeReplyUserIds, param.AttachmentUrl)
+ param.AutoPopulateReplyMetadata, param.ExcludeReplyUserIds, param.AttachmentUrl)
.ConfigureAwait(false);
var status = await response.LoadJsonAsync()