themotte / rDrama

This code runs https://www.themotte.org. Forked from https://github.com/Aevann1/rDrama
GNU Affero General Public License v3.0
25 stars 31 forks source link

Posts cannot be unfiltered by mods on mobile UI #602

Closed TLSM closed 1 year ago

TLSM commented 1 year ago

When the "Filter New Posts" site setting is enabled, all new submissions are filter_state='filtered', and the primary means of unfiltering is via any post listing or the post page itself, where the post actions bar contains Approve/Remove buttons.

However, these buttons only exist in the component/post/actions.html template fragment, while the mobile UI uses component/post/actions_mobile.html / actions_admin_mobile.html which lacks them. I see no existing way to unfilter an un-reported post with the mobile UI.

Recommend implementing something like this in the component/posts/actions_admin_mobile.html modal: https://github.com/themotte/rDrama/blob/52bcb8595013dcf65e04abf73f27679663467911/files/templates/component/post/actions.html#L38-L41