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] Handle EF Core warning

Kopper 344c3cd9 be27d75a

+70
+5
Iceshrimp.Backend/Core/Database/Tables/ChannelNotePin.cs
··· 48 48 entity.HasOne(d => d.Note) 49 49 .WithMany(p => p.ChannelNotePins) 50 50 .OnDelete(DeleteBehavior.Cascade); 51 + 52 + // Reverse of the filter from Note 53 + // TODO: name this filter when we update to EF 10 54 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 55 + entity.HasQueryFilter(e => e.Note.Published); 51 56 } 52 57 } 53 58 }
+5
Iceshrimp.Backend/Core/Database/Tables/ClipNote.cs
··· 52 52 entity.HasOne(d => d.Note) 53 53 .WithMany(p => p.ClipNotes) 54 54 .OnDelete(DeleteBehavior.Cascade); 55 + 56 + // Reverse of the filter from Note 57 + // TODO: name this filter when we update to EF 10 58 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 59 + entity.HasQueryFilter(e => e.Note.Published); 55 60 } 56 61 } 57 62 }
+5
Iceshrimp.Backend/Core/Database/Tables/InteractionStamp.cs
··· 50 50 { 51 51 entity.Property(e => e.TargetNoteId).HasComment("The note being interacted with"); 52 52 entity.Property(e => e.NoteId).HasComment("The note doing the interaction (quote, reply, whatever)"); 53 + 54 + // Reverse of the filter from Note 55 + // TODO: name this filter when we update to EF 10 56 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 57 + entity.HasQueryFilter(e => e.Note.Published); 53 58 } 54 59 } 55 60 }
+5
Iceshrimp.Backend/Core/Database/Tables/NoteBookmark.cs
··· 46 46 entity.HasOne(d => d.User) 47 47 .WithMany(p => p.NoteBookmarks) 48 48 .OnDelete(DeleteBehavior.Cascade); 49 + 50 + // Reverse of the filter from Note 51 + // TODO: name this filter when we update to EF 10 52 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 53 + entity.HasQueryFilter(e => e.Note.Published); 49 54 } 50 55 } 51 56 }
+5
Iceshrimp.Backend/Core/Database/Tables/NoteEdit.cs
··· 49 49 entity.HasOne(d => d.Note) 50 50 .WithMany(p => p.NoteEdits) 51 51 .OnDelete(DeleteBehavior.Cascade); 52 + 53 + // Reverse of the filter from Note 54 + // TODO: name this filter when we update to EF 10 55 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 56 + entity.HasQueryFilter(e => e.Note.Published); 52 57 } 53 58 } 54 59 }
+5
Iceshrimp.Backend/Core/Database/Tables/NoteLike.cs
··· 42 42 entity.HasOne(d => d.User) 43 43 .WithMany(p => p.NoteLikes) 44 44 .OnDelete(DeleteBehavior.Cascade); 45 + 46 + // Reverse of the filter from Note 47 + // TODO: name this filter when we update to EF 10 48 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 49 + entity.HasQueryFilter(e => e.Note.Published); 45 50 } 46 51 } 47 52 }
+5
Iceshrimp.Backend/Core/Database/Tables/NoteReaction.cs
··· 52 52 entity.HasOne(d => d.User) 53 53 .WithMany(p => p.NoteReactions) 54 54 .OnDelete(DeleteBehavior.Cascade); 55 + 56 + // Reverse of the filter from Note 57 + // TODO: name this filter when we update to EF 10 58 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 59 + entity.HasQueryFilter(e => e.Note.Published); 55 60 } 56 61 } 57 62 }
+5
Iceshrimp.Backend/Core/Database/Tables/NoteUnread.cs
··· 64 64 entity.HasOne(d => d.User) 65 65 .WithMany(p => p.NoteUnreads) 66 66 .OnDelete(DeleteBehavior.Cascade); 67 + 68 + // Reverse of the filter from Note 69 + // TODO: name this filter when we update to EF 10 70 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 71 + entity.HasQueryFilter(e => e.Note.Published); 67 72 } 68 73 } 69 74 }
+5
Iceshrimp.Backend/Core/Database/Tables/NoteWatching.cs
··· 69 69 entity.HasOne(d => d.User) 70 70 .WithMany(p => p.NoteWatchings) 71 71 .OnDelete(DeleteBehavior.Cascade); 72 + 73 + // Reverse of the filter from Note 74 + // TODO: name this filter when we update to EF 10 75 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 76 + entity.HasQueryFilter(e => e.Note.Published); 72 77 } 73 78 } 74 79 }
+5
Iceshrimp.Backend/Core/Database/Tables/Poll.cs
··· 62 62 entity.HasOne(d => d.Note) 63 63 .WithOne(p => p.Poll) 64 64 .OnDelete(DeleteBehavior.Cascade); 65 + 66 + // Reverse of the filter from Note 67 + // TODO: name this filter when we update to EF 10 68 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 69 + entity.HasQueryFilter(e => e.Note.Published); 65 70 } 66 71 } 67 72 }
+5
Iceshrimp.Backend/Core/Database/Tables/PollVote.cs
··· 50 50 entity.HasOne(d => d.User) 51 51 .WithMany(p => p.PollVotes) 52 52 .OnDelete(DeleteBehavior.Cascade); 53 + 54 + // Reverse of the filter from Note 55 + // TODO: name this filter when we update to EF 10 56 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 57 + entity.HasQueryFilter(e => e.Note.Published); 53 58 } 54 59 } 55 60 }
+5
Iceshrimp.Backend/Core/Database/Tables/PromoNote.cs
··· 36 36 entity.HasOne(d => d.Note) 37 37 .WithOne(p => p.PromoNote) 38 38 .OnDelete(DeleteBehavior.Cascade); 39 + 40 + // Reverse of the filter from Note 41 + // TODO: name this filter when we update to EF 10 42 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 43 + entity.HasQueryFilter(e => e.Note.Published); 39 44 } 40 45 } 41 46 }
+5
Iceshrimp.Backend/Core/Database/Tables/PromoRead.cs
··· 46 46 entity.HasOne(d => d.User) 47 47 .WithMany(p => p.PromoReads) 48 48 .OnDelete(DeleteBehavior.Cascade); 49 + 50 + // Reverse of the filter from Note 51 + // TODO: name this filter when we update to EF 10 52 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 53 + entity.HasQueryFilter(e => e.Note.Published); 49 54 } 50 55 } 51 56 }
+5
Iceshrimp.Backend/Core/Database/Tables/UserNotePin.cs
··· 46 46 entity.HasOne(d => d.User) 47 47 .WithMany(p => p.UserNotePins) 48 48 .OnDelete(DeleteBehavior.Cascade); 49 + 50 + // Reverse of the filter from Note 51 + // TODO: name this filter when we update to EF 10 52 + // https://learn.microsoft.com/en-us/ef/core/querying/filters?tabs=ef10#using-multiple-query-filters 53 + entity.HasQueryFilter(e => e.Note.Published); 49 54 } 50 55 } 51 56 }