Fix Admin and Invite links never showing on Reader nav

This commit is contained in:
Matt Baer 2024-02-20 10:02:14 -05:00
parent 6d547040ef
commit e34a58d0ef
1 changed files with 3 additions and 5 deletions

View File

@ -229,11 +229,9 @@ func showLocalTimeline(app *App, w http.ResponseWriter, r *http.Request, page in
TotalPages: ttlPages, TotalPages: ttlPages,
SelTopic: tag, SelTopic: tag,
} }
if app.cfg.App.Chorus {
u := getUserSession(app, r) u := getUserSession(app, r)
d.IsAdmin = u != nil && u.IsAdmin() d.IsAdmin = u != nil && u.IsAdmin()
d.CanInvite = canUserInvite(app.cfg, d.IsAdmin) d.CanInvite = canUserInvite(app.cfg, d.IsAdmin)
}
c, err := getReaderSection(app) c, err := getReaderSection(app)
if err != nil { if err != nil {
return err return err