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/akko-api] Return placeholder bubble instance name when bubble timeline is enabled (ISH-802)

+7 -3
+6 -2
Iceshrimp.Backend/Controllers/Federation/NodeInfoController.cs
··· 49 49 var (instanceName, instanceDescription, adminContact, themeColor) = 50 50 await meta.GetManyAsync(MetaEntity.InstanceName, MetaEntity.InstanceDescription, 51 51 MetaEntity.AdminContactEmail, MetaEntity.ThemeColor); 52 - 52 + 53 + var bubbleTimelineEnabled = await db.BubbleInstances.AnyAsync(); 54 + 53 55 return new NodeInfoResponse 54 56 { 55 57 Version = Request.Path.Value?.EndsWith("2.1") ?? false ? "2.1" : "2.0", ··· 119 121 }, 120 122 // @formatter:on 121 123 Suggestions = new NodeInfoResponse.PleromaSuggestions { Enabled = false }, 122 - Federation = new NodeInfoResponse.PleromaFederation { Enabled = true } 124 + Federation = new NodeInfoResponse.PleromaFederation { Enabled = true }, 125 + // We don't want to leak the list of bubble instances to unauthenticated clients 126 + LocalBubbleInstances = bubbleTimelineEnabled ? ["redacted.invalid"] : [] 123 127 }, 124 128 OpenRegistrations = false 125 129 };
+1 -1
Iceshrimp.Backend/Core/Federation/WebFinger/Types.cs
··· 136 136 "pleroma:bites" 137 137 ]; 138 138 139 - [J("localBubbleInstances")] public string[] LocalBubbleInstances { get; set; } = []; 139 + [J("localBubbleInstances")] public string[]? LocalBubbleInstances { get; set; } 140 140 141 141 // TODO: list of ap object ids i believe? 142 142 [J("staffAccounts")] public string[] StaffAccounts { get; set; } = [];