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/razor] Fix note ordering on profile public preview

authored by

pancakes and committed by
Iceshrimp development
a53c9654 4d29e8f0

+2 -2
+2 -2
Iceshrimp.Backend/Pages/UserPreview.razor.cs
··· 47 47 48 48 _instanceName = await meta.GetAsync(MetaEntity.InstanceName) ?? _instanceName; 49 49 50 - //TODO: user note view (respect public preview settings - don't show renotes of remote notes if set to restricted or lower) 51 - 52 50 var split = Acct.Split("@"); 53 51 if (split.Length > 2) throw GracefulException.BadRequest("Invalid acct"); 54 52 var username = split[0].ToLowerInvariant(); ··· 75 73 { 76 74 var pinnedNotes = await Database.UserNotePins 77 75 .Where(p => p.UserId == user.Id && p.Note.VisibilityIsPublicOrHome) 76 + .OrderByDescending(p => p.Id) 78 77 .Select(p => p.Note) 79 78 .ToListAsync(); 80 79 _pinnedNotes = await noteRenderer.RenderManyAsync(pinnedNotes); ··· 84 83 { 85 84 var notes = await Database.Notes 86 85 .Where(p => p.UserId == user.Id && !p.IsPureRenote && p.VisibilityIsPublicOrHome) 86 + .OrderByDescending(p => p.Id) 87 87 .Skip(Offset ?? 0) 88 88 .Take(20) 89 89 .ToListAsync();