🐛 Fix post service poll loading
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user