fix up whitespace stuff on this patch

This commit is contained in:
notfire 2025-03-16 12:17:01 -04:00
parent 55d3a118d1
commit fe532e5a93
Signed by: notfire
GPG key ID: 3AFDACAAB4E56B16
2 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ sha512sums=('SKIP'
'0a0467df278f3bd739114725b373f5ec6c7296f609f0a9bcb4f8142b44856fc63e32f76390adf757005035dc691a4c54a662cc8a287572b61e215c29e3d3cbf2'
'085d94b31e8eb3109b18251381766799d45c351ec6c7ec45d6edad1915ed89fa9b32765f6deaec191a501274b791000e75ecd052af46bf5341af619b1c7a9bf7'
'57dbdb3e73ea273c78c19befaf3d8e1f7dc079630d69eed1ffaf05636969d69e3b5f541d3c915b19edf6eb66398cbdd4b6a57e38f3e8088a259b8bd47f9b4ff7'
'13c921c8137792b67201b81f364b4b60443c01cee023723af71d7f64de908e05998cf7ead7b5e50f49426e8d32612d5242ec79927cde21215173a0c6a8d05b3b')
'7a541ed4fd9f3648cb08772de4d64b2f7295940421285c9ab08f0e261ab85f80963180a46e7c79463e64f429c3f1db513c95b69ba446e50ba4e0f06ae7a90057')
pkgver() {
cd "${srcdir}/iceshrimp.net"

View file

@ -1,5 +1,5 @@
diff --git a/Iceshrimp.Backend/Controllers/Web/NoteController.cs b/Iceshrimp.Backend/Controllers/Web/NoteController.cs
index 26cc0a89..44d87891 100644
index 26cc0a89..e28f18fb 100644
--- a/Iceshrimp.Backend/Controllers/Web/NoteController.cs
+++ b/Iceshrimp.Backend/Controllers/Web/NoteController.cs
@@ -561,6 +561,45 @@ public class NoteController(
@ -23,13 +23,13 @@ index 26cc0a89..44d87891 100644
+ .Select(p => new {p.UserId, p.Choice})
+ .ToListAsync()
+ ?? throw GracefulException.NotFound("Poll votes not found");
+
+
+ List<EvilPollVote> pollVotes = [];
+
+ var users = await db.Users
+ .Where(p => votes.Select(v => v.UserId).Distinct().ToList().Contains(p.Id))
+ .ToListAsync();
+
+
+ // ReSharper disable once ForeachCanBeConvertedToQueryUsingAnotherGetEnumerator
+ foreach (var vote in votes)
+ {