Skip to content

Commit

Permalink
Add ToLowerInvairant() to HideTotals
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardobragaxz committed Dec 15, 2023
1 parent b7ac526 commit 1d3dd83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Mastonet/MastodonClient.Status.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public Task<Status> PublishStatus(string status, Visibility? visibility = null,

if (poll.HideTotals.HasValue)
{
data.Add(new KeyValuePair<string, string>("poll[hide_totals]", poll.HideTotals.Value.ToString()));
data.Add(new KeyValuePair<string, string>("poll[hide_totals]", poll.HideTotals.Value.ToString().ToLowerInvariant()));
}
}

Expand Down
2 changes: 1 addition & 1 deletion Mastonet/TimelineWebSocketStreaming.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public override void Stop()
}
}

[JsonSerializable(typeof(TimelineMessage))]
[JsonSerializable(typeof(TimelineMessage), GenerationMode = JsonSourceGenerationMode.Metadata)]
internal partial class TimelineMessageContext : JsonSerializerContext
{
}

0 comments on commit 1d3dd83

Please sign in to comment.