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.

[frontend/pages] Use the user's username to represent their Drive root folder

pancakes b95595a4 9e03455e

+3 -2
+3 -2
Iceshrimp.Frontend/Pages/DrivePage.razor
··· 16 16 @inject IStringLocalizer<Localization> Loc; 17 17 @inject ILogger<DrivePage> Logger; 18 18 @inject NavigationManager Nav; 19 + @inject SessionService Session; 19 20 20 21 <HeadTitle Text="@Loc["Drive"]"/> 21 22 ··· 72 73 @if (Folder.Path.Count == 0 || Folder.Path.First().ParentId == null) 73 74 { 74 75 <li class="path-entry"> 75 - <a href="/drive">@Loc["Drive"]</a> 76 + <a href="/drive">@(Session.Current?.Username ?? Loc["Drive"])</a> 76 77 </li> 77 78 } 78 79 else ··· 86 87 <a href="/drive/@entry.Id">@entry.Name</a> 87 88 </li> 88 89 } 89 - <li>@(Folder.Name ?? Loc["Drive"])</li> 90 + <li>@(Folder.Name ?? Session.Current?.Username ?? Loc["Drive"])</li> 90 91 </ol> 91 92 <span>@Loc["({0} folders, {1} files)", Folder.Folders.Count, Folder.Files.Count]</span> 92 93 </div>