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/import-export] Skip self when blocking, importing or muting - Basically skips over the user in a blocklist if the blocklist happens to contain self.

Lunya 3e92d14f b6575869

+3
+3
Iceshrimp.Backend/Core/Services/ImportExportService.cs
··· 67 67 try 68 68 { 69 69 var blockee = await userResolver.ResolveAsync($"acct:{fqn}", ResolveFlags.Acct); 70 + if (blockee.Id == user.Id) continue; // don't block self 70 71 await userSvc.BlockUserAsync(user, blockee); 71 72 } 72 73 catch (Exception e) ··· 85 86 try 86 87 { 87 88 var followee = await userResolver.ResolveAsync($"acct:{fqn}", ResolveFlags.Acct); 89 + if (followee.Id == user.Id) continue; 88 90 await userSvc.FollowUserAsync(user, followee); 89 91 } 90 92 catch (Exception e) ··· 104 106 try 105 107 { 106 108 var mutee = await userResolver.ResolveAsync($"acct:{fqn}", ResolveFlags.Acct); 109 + if (mutee.Id == user.Id) continue; 107 110 await userSvc.MuteUserAsync(user, mutee, null); 108 111 } 109 112 catch (Exception e)