Hide private lists from prefs manage page. Closes #1200.

This commit is contained in:
Kailash Nadh 2023-02-26 12:36:46 +05:30
parent 215aae5366
commit dda7d44601

View file

@ -227,11 +227,7 @@ func handleSubscriptionPage(c echo.Context) error {
out.Subscriptions = make([]models.Subscription, 0, len(subs)) out.Subscriptions = make([]models.Subscription, 0, len(subs))
for _, s := range subs { for _, s := range subs {
if s.Type == models.ListTypePrivate { if s.Type == models.ListTypePrivate {
if s.SubscriptionStatus.IsZero() { continue
continue
}
s.Name = app.i18n.T("public.subPrivateList")
} }
out.Subscriptions = append(out.Subscriptions, s) out.Subscriptions = append(out.Subscriptions, s)