delete removed posts after is set to
0 and non-staff user self-deletes their own topic then we are showing them a blank page which is confusing. Now we’ll redirect them to homepage instead of showing blank page.
Can we do this without using
User.currentProp? We are trying to get away from that. Is
deleted_by an object with
.staff? Could we add another argument to pass the current user in if it’s not?
Excellent suggestion! Yes
deleted_by is an object with
.staff. I’ve made the required changes.