Make New Post button contextual on coll sub-sections
This commit is contained in:
parent
8d27ee6d99
commit
3a915ad8ea
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,7 @@ type (
|
||||||
Separator template.HTML
|
Separator template.HTML
|
||||||
IsAdmin bool
|
IsAdmin bool
|
||||||
CanInvite bool
|
CanInvite bool
|
||||||
|
CollAlias string
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -854,6 +855,7 @@ func viewEditCollection(app *App, u *User, w http.ResponseWriter, r *http.Reques
|
||||||
Collection: c,
|
Collection: c,
|
||||||
Silenced: silenced,
|
Silenced: silenced,
|
||||||
}
|
}
|
||||||
|
obj.UserPage.CollAlias = c.Alias
|
||||||
|
|
||||||
showUserPage(w, "collection", obj)
|
showUserPage(w, "collection", obj)
|
||||||
return nil
|
return nil
|
||||||
|
@ -1033,6 +1035,7 @@ func viewStats(app *App, u *User, w http.ResponseWriter, r *http.Request) error
|
||||||
TopPosts: topPosts,
|
TopPosts: topPosts,
|
||||||
Silenced: silenced,
|
Silenced: silenced,
|
||||||
}
|
}
|
||||||
|
obj.UserPage.CollAlias = c.Alias
|
||||||
if app.cfg.App.Federation {
|
if app.cfg.App.Federation {
|
||||||
folls, err := app.db.GetAPFollowers(c)
|
folls, err := app.db.GetAPFollowers(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue