You've already forked AstralRinth
forked from didirus/AstralRinth
Fix issue with moderator identities being revealed (#892)
* Fix issue with moderator identities being revealed * Fix on multiple threads route * Fix thread notifs * Fix failing test * fix thread messages returning nothing
This commit is contained in:
9
migrations/20240319195753_threads-updates.sql
Normal file
9
migrations/20240319195753_threads-updates.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
ALTER TABLE threads DROP COLUMN show_in_mod_inbox;
|
||||
|
||||
ALTER TABLE threads_messages ADD COLUMN hide_identity BOOLEAN default false NOT NULL;
|
||||
|
||||
UPDATE threads_messages
|
||||
SET hide_identity = TRUE
|
||||
FROM users
|
||||
WHERE threads_messages.author_id = users.id
|
||||
AND users.role IN ('moderator', 'admin');
|
||||
Reference in New Issue
Block a user