🐛 Fix post service poll loading

This commit is contained in:
2025-08-08 01:38:05 +08:00
parent 77ccc9aeb5
commit 1fab398778

View File

@@ -676,7 +676,7 @@ public partial class PostService(
// Find the index of the poll embed first // Find the index of the poll embed first
var pollIndex = embeds.FindIndex(e => var pollIndex = embeds.FindIndex(e =>
e.ContainsKey("Type") && ((JsonElement)e["Type"]).ToString() == "poll" e.ContainsKey("type") && ((JsonElement)e["type"]).ToString() == "poll"
); );
if (pollIndex < 0) if (pollIndex < 0)