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/federation] Handle bite controls for incoming bite activities

pancakes 6a504e44 ab9bf774

+5
+5
Iceshrimp.Backend/Core/Federation/ActivityPub/ActivityHandlerService.cs
··· 433 433 if (await db.Blockings.AnyAsync(p => p.Blockee == resolvedActor && p.Blocker == finalTarget)) 434 434 throw GracefulException.Forbidden("You are not allowed to interact with this user"); 435 435 436 + if (finalTarget?.CanBite == null 437 + || (finalTarget.CanBite == User.BiteControl.Followers 438 + && !await db.Followings.AnyAsync(p => p.Followee == finalTarget && p.Follower == resolvedActor))) 439 + throw GracefulException.Forbidden("You are not allowed to bite this user"); 440 + 436 441 await db.AddAsync(dbBite); 437 442 await db.SaveChangesAsync(); 438 443 await notificationSvc.GenerateBiteNotificationAsync(dbBite);