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.

[sln] Switch to field keyword

+33 -45
+3 -4
Iceshrimp.Backend/Controllers/Mastodon/Schemas/AuthSchemas.cs
··· 21 21 22 22 public class RegisterAppRequest 23 23 { 24 - private List<string> _scopes = ["read"]; 25 24 public List<string> RedirectUris = []; 26 25 27 26 [B(Name = "scopes")] ··· 29 28 [JC(typeof(EnsureArrayConverter))] 30 29 public List<string> Scopes 31 30 { 32 - get => _scopes; 33 - set => _scopes = value.Count == 1 31 + get; 32 + set => field = value.Count == 1 34 33 ? value[0].Trim().Contains(' ') 35 34 ? value[0].Trim().Split(' ').ToList() 36 35 : value[0].Trim().Split(',').ToList() 37 36 : value; 38 - } 37 + } = ["read"]; 39 38 40 39 [B(Name = "client_name")] 41 40 [J("client_name")]
+2 -4
Iceshrimp.Backend/Core/Federation/ActivityStreams/Types/ASActivity.cs
··· 46 46 47 47 public class ASActivityWithObjectArray : ASActivity 48 48 { 49 - private ASObject[]? _object; 50 - 51 49 [J($"{Constants.ActivityStreamsNs}#object")] 52 50 [JC(typeof(ASObjectArrayConverter))] 53 51 public new ASObject[]? Object 54 52 { 55 - get => _object; 53 + get; 56 54 set 57 55 { 58 - _object = value; 56 + field = value; 59 57 base.Object = value?.FirstOrDefault(); 60 58 } 61 59 }
+2 -4
Iceshrimp.Backend/Core/Federation/ActivityStreams/Types/ASNote.cs
··· 9 9 10 10 public class ASNote : ASObjectWithId 11 11 { 12 - private string? _mkContent; 13 - 14 12 [JI] public bool VerifiedFetch = false; 15 13 public ASNote(bool withType = true) => Type = withType ? Types.Note : null; 16 14 ··· 18 16 [JC(typeof(VC))] 19 17 public string? MkContent 20 18 { 21 - get => _mkContent ?? (Source?.MediaType == "text/x.misskeymarkdown" ? Source?.Content : null); 22 - set => _mkContent = value; 19 + get => field ?? (Source?.MediaType == "text/x.misskeymarkdown" ? Source?.Content : null); 20 + set; 23 21 } 24 22 25 23 [J("https://misskey-hub.net/ns#_misskey_quote")]
+4 -6
Iceshrimp.Backend/Core/Federation/ActivityStreams/Types/ASQuestion.cs
··· 7 7 8 8 public class ASQuestion : ASNote 9 9 { 10 - private List<ASQuestionOption>? _anyOf; 11 - private List<ASQuestionOption>? _oneOf; 12 10 public ASQuestion() => Type = Types.Question; 13 11 14 12 [J($"{Constants.ActivityStreamsNs}#oneOf")] 15 13 public List<ASQuestionOption>? OneOf 16 14 { 17 - get => _oneOf; 18 - set => _oneOf = value?[..Math.Min(10, value.Count)]; 15 + get; 16 + set => field = value?[..Math.Min(10, value.Count)]; 19 17 } 20 18 21 19 [J($"{Constants.ActivityStreamsNs}#anyOf")] 22 20 public List<ASQuestionOption>? AnyOf 23 21 { 24 - get => _anyOf; 25 - set => _anyOf = value?[..Math.Min(10, value.Count)]; 22 + get; 23 + set => field = value?[..Math.Min(10, value.Count)]; 26 24 } 27 25 28 26 [J($"{Constants.ActivityStreamsNs}#endTime")]
+4 -2
Iceshrimp.Backend/Core/Helpers/SemaphorePlus.cs
··· 2 2 3 3 public class SemaphorePlus(int maxCount) : SemaphoreSlim(maxCount, maxCount) 4 4 { 5 - private readonly int _maxCount = maxCount; 6 - public int ActiveCount => _maxCount - CurrentCount; 5 + public int ActiveCount 6 + { 7 + get => field - CurrentCount; 8 + } = maxCount; 7 9 8 10 public async Task WaitAndReleaseAsync(CancellationToken token) 9 11 {
+3 -4
Iceshrimp.Backend/Core/Policies/ForceCwRewritePolicy.cs
··· 86 86 87 87 public class ForceCwRewritePolicyConfiguration : IPolicyConfiguration<ForceCwRewritePolicy> 88 88 { 89 - private string[] _instances = []; 90 89 public ForceCwRewritePolicy Apply() => new(Enabled, Priority, Cw, Words, Instances); 91 90 IPolicy IPolicyConfiguration.Apply() => Apply(); 92 91 ··· 97 96 98 97 public string[] Instances 99 98 { 100 - get => _instances; 101 - set => _instances = value.Select(p => p.ToLowerInvariant()).ToArray(); 102 - } 99 + get; 100 + set => field = value.Select(p => p.ToLowerInvariant()).ToArray(); 101 + } = []; 103 102 }
+3 -4
Iceshrimp.Backend/Core/Policies/ForceFollowerOnlyRewritePolicy.cs
··· 29 29 30 30 public class ForceFollowerOnlyRewritePolicyConfiguration : IPolicyConfiguration<ForceFollowerOnlyRewritePolicy> 31 31 { 32 - private string[] _instances = []; 33 32 public ForceFollowerOnlyRewritePolicy Apply() => new(Enabled, Priority, Instances); 34 33 IPolicy IPolicyConfiguration. Apply() => Apply(); 35 34 ··· 38 37 39 38 public string[] Instances 40 39 { 41 - get => _instances; 42 - set => _instances = value.Select(p => p.ToLowerInvariant()).ToArray(); 43 - } 40 + get; 41 + set => field = value.Select(p => p.ToLowerInvariant()).ToArray(); 42 + } = []; 44 43 }
+3 -4
Iceshrimp.Backend/Core/Policies/ForceMediaSensitiveRewritePolicy.cs
··· 41 41 42 42 public class ForceMediaSensitivePolicyConfiguration : IPolicyConfiguration<ForceMediaSensitiveRewritePolicy> 43 43 { 44 - private string[] _instances = []; 45 44 public ForceMediaSensitiveRewritePolicy Apply() => new(Enabled, Priority, Instances); 46 45 IPolicy IPolicyConfiguration. Apply() => Apply(); 47 46 ··· 50 49 51 50 public string[] Instances 52 51 { 53 - get => _instances; 54 - set => _instances = value.Select(p => p.ToLowerInvariant()).ToArray(); 55 - } 52 + get; 53 + set => field = value.Select(p => p.ToLowerInvariant()).ToArray(); 54 + } = []; 56 55 }
+3 -4
Iceshrimp.Backend/Core/Policies/StripMediaRewritePolicy.cs
··· 41 41 42 42 public class StripMediaRewritePolicyConfiguration : IPolicyConfiguration<StripMediaRewritePolicy> 43 43 { 44 - private string[] _instances = []; 45 44 public StripMediaRewritePolicy Apply() => new(Enabled, Priority, Instances); 46 45 IPolicy IPolicyConfiguration. Apply() => Apply(); 47 46 ··· 50 49 51 50 public string[] Instances 52 51 { 53 - get => _instances; 54 - set => _instances = value.Select(p => p.ToLowerInvariant()).ToArray(); 55 - } 52 + get; 53 + set => field = value.Select(p => p.ToLowerInvariant()).ToArray(); 54 + } = []; 56 55 }
+4 -6
Iceshrimp.Build/RewriteStaticAssetManifestTask.cs
··· 119 119 120 120 private sealed class StaticAssetDescriptor 121 121 { 122 - private string? _route; 123 - private string? _assetFile; 124 122 private List<StaticAssetSelector> _selectors = []; 125 123 private List<StaticAssetProperty> _endpointProperties = []; 126 124 private List<StaticAssetResponseHeader> _responseHeaders = []; 127 125 128 126 public required string Route 129 127 { 130 - get => _route ?? throw new InvalidOperationException("Route is required"); 131 - set => _route = value; 128 + get => field ?? throw new InvalidOperationException("Route is required"); 129 + set; 132 130 } 133 131 134 132 [JsonPropertyName("AssetFile")] 135 133 public required string AssetPath 136 134 { 137 - get => _assetFile ?? throw new InvalidOperationException("AssetPath is required"); 138 - set => _assetFile = value; 135 + get => field ?? throw new InvalidOperationException("AssetPath is required"); 136 + set; 139 137 } 140 138 141 139 [JsonPropertyName("Selectors")]
+2 -3
Iceshrimp.Frontend/Core/Services/UpdateService.cs
··· 10 10 private readonly ApiService _api; 11 11 private readonly ILogger<UpdateService> _logger; 12 12 private readonly Lazy<Task<IJSObjectReference>> _moduleTask; 13 - private UpdateStates _updateState; 14 13 public bool DialogOpen { get; set; } 15 14 16 15 public EventHandler<UpdateStates>? UpdateStatusEvent { get; set; } 17 16 18 17 public UpdateStates UpdateState 19 18 { 20 - get => _updateState; 19 + get; 21 20 private set 22 21 { 23 22 UpdateStatusEvent?.Invoke(this, value); 24 23 _logger.LogInformation($"Invoked Update Status Event: {value}"); 25 - _updateState = value; 24 + field = value; 26 25 } 27 26 } 28 27