reset cache after silencing user

pull/384/head
Colin Axner 4 years ago
parent 3aa621ee36
commit 30fc088cec
  1. 3
      admin.go

@ -328,6 +328,9 @@ func handleAdminToggleUserStatus(app *App, u *User, w http.ResponseWriter, r *ht
err = app.db.SetUserStatus(user.ID, UserActive)
} else {
err = app.db.SetUserStatus(user.ID, UserSilenced)
// reset the cache to removed silence user posts
updateTimelineCache(app.timeline, true)
}
if err != nil {
log.Error("toggle user silenced: %v", err)

Loading…
Cancel
Save