a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[backend] Fix build against net10 dependency versions

+9 -9
+1 -1
Iceshrimp.Backend/Core/Database/DatabaseContext.cs
··· 66 66 public virtual DbSet<RegistryItem> RegistryItems { get; init; } = null!; 67 67 public virtual DbSet<Relay> Relays { get; init; } = null!; 68 68 public virtual DbSet<RenoteMuting> RenoteMutings { get; init; } = null!; 69 - public virtual DbSet<Rule> Rules { get; set; } 69 + public virtual DbSet<Rule> Rules { get; init; } = null!; 70 70 public virtual DbSet<Session> Sessions { get; init; } = null!; 71 71 public virtual DbSet<SwSubscription> SwSubscriptions { get; init; } = null!; 72 72 public virtual DbSet<PushSubscription> PushSubscriptions { get; init; } = null!;
+2 -2
Iceshrimp.Backend/Core/Extensions/WebApplicationExtensions.cs
··· 66 66 .AddDocument("federation", "Federation") 67 67 .AddDocument("mastodon", "Mastodon") 68 68 .WithOpenApiRoutePattern("/openapi/{documentName}.json") 69 - .WithModels(false) 70 - .WithPersistentAuthentication() 69 + .HideModels() 70 + .EnablePersistentAuthentication() 71 71 .WithCustomCss(""" 72 72 .open-api-client-button, .darklight-reference > .flex > .text-sm { display: none !important; } 73 73 .darklight-reference > .flex > button > div:nth-child(1) { height: 14px !important; }
+2 -2
Iceshrimp.Tests/Concurrency/EventTests.cs
··· 77 77 autoResetEvent.Set(); 78 78 await autoResetEvent.WaitAsync(); 79 79 autoResetEvent.Signaled.Should().BeFalse(); 80 - await Assert.ThrowsExceptionAsync<TimeoutException>(() => autoResetEvent.WaitAsync() 81 - .WaitAsync(TimeSpan.FromMilliseconds(45))); 80 + await Assert.ThrowsAsync<TimeoutException>(() => autoResetEvent.WaitAsync() 81 + .WaitAsync(TimeSpan.FromMilliseconds(45))); 82 82 } 83 83 84 84 [TestMethod]
+3 -3
Iceshrimp.Tests/Cryptography/HttpSignatureTests.cs
··· 50 50 request.Headers.Date = DateTimeOffset.Now - TimeSpan.FromHours(13); 51 51 52 52 var task = request.VerifyAsync(MockObjects.UserKeypair.PublicKey); 53 - var e = await Assert.ThrowsExceptionAsync<GracefulException>(() => task); 53 + var e = await Assert.ThrowsAsync<GracefulException>(() => task); 54 54 e.StatusCode.Should().Be(HttpStatusCode.Forbidden); 55 55 e.Message.Should().Be("Request signature is too old"); 56 56 e.Error.Should().Be("Forbidden"); ··· 186 186 parsed = HttpSignature.Parse(sigHeader); 187 187 188 188 var task = HttpSignature.VerifySignatureAsync(keypair.PublicKey, signingString, parsed, dict, null); 189 - var ex = await Assert.ThrowsExceptionAsync<GracefulException>(() => task); 189 + var ex = await Assert.ThrowsAsync<GracefulException>(() => task); 190 190 ex.Message.Should().Be("Request signature is expired"); 191 191 } 192 192 ··· 218 218 parsed = HttpSignature.Parse(sigHeader); 219 219 220 220 var task = HttpSignature.VerifySignatureAsync(keypair.PublicKey, signingString, parsed, dict, null); 221 - var ex = await Assert.ThrowsExceptionAsync<GracefulException>(() => task); 221 + var ex = await Assert.ThrowsAsync<GracefulException>(() => task); 222 222 ex.Message.Should().Be("Request signature is too old"); 223 223 } 224 224 }
+1 -1
Iceshrimp.Tests/Cryptography/LdSignatureTests.cs
··· 79 79 80 80 data[$"{Constants.W3IdSecurityNs}#signature"]![0]![$"{Constants.W3IdSecurityNs}#signatureValue"]![0]! 81 81 ["@value"] += "test"; 82 - var e = await Assert.ThrowsExceptionAsync<FormatException>(async () => await LdSignature.VerifyAsync(data, data, 82 + var e = await Assert.ThrowsAsync<FormatException>(async () => await LdSignature.VerifyAsync(data, data, 83 83 _keypair.ExportRSAPublicKeyPem())); 84 84 85 85 e.Message.Should()