codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

Show who last edited a comment #1135

Open cellio opened 1 year ago

cellio commented 1 year ago

Continuation of https://github.com/codidact/qpixel/issues/238 . Comments now indicate when they were edited (if they were). This request is to add who edited it, one of "by author" or "by moderator". (Nobody else can edit comments, and for the moderator case, we do not want to say publicly which moderator did.)

Ideally moderators would be able to see more, but we do not keep comment history now so that's harder (and separate). To implement this current piece, we will at least need to track the identity of the last editor -- ideally track the real identity and then adjust it in the UI, to make fuller history later easier. This also means that if a moderator were to somehow go off the rails, somebody with direct database access could at least see which mod made an edit.