🐛 Bug fixes in loading poll

This commit is contained in:
2025-08-05 22:12:42 +08:00
parent 5d2ad2479b
commit 822a339532

View File

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