haystack / murmur

A mailing list designed to reduce noise and encourage sharing
25 stars 13 forks source link

Multiple pending in thread #206

Closed kmahar closed 7 years ago

kmahar commented 7 years ago

again, needed code from previous PRs to do this, so this includes their code.

I was testing earlier and realized there was some weird behavior when multiple posts from the same thread were pending moderation. basically a link to the thread would show up multiple times in the queue, but would always only feature the first post to th thread.

so this groups together pending posts by their thread, and indicates in the moderation queue that it is a multi-post thread. when a mod clicks on it, it will display all of them, and have them go one by one through all the thread's posts in order of time to approve/reject them. since the approve/reject page is the "thread" view from murmur, this required making a couple of logic changes to load_thread for deciding which post shows up as the primary post and which are replies.

also fixes some formatting issues on the mod queue, and fixes how sender names were being converted to lowercase (it should just be their email address.)