This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
730913b
commit decfcb6
Showing
20 changed files
with
79 additions
and
334 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
.sqlx/query-10279b5a8383ba8e286f1bfb9a486e3f8b362c46cfc2647c90a83a10e5329569.json
This file was deleted.
Oops, something went wrong.
12 changes: 3 additions & 9 deletions
12
...57654ede51e944944d4af59fe1ba1f6a336e.json → ...ccecfd09d877e84f3fbe5cd190dd69d3b7e1.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
.sqlx/query-49813a96f007216072d69468aae705d73d5b85dcdd64a22060009b12d947ed5a.json
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
.sqlx/query-8f5e2a570cf35b2d158182bac37fd40bcec277bbdeddaece5efaa88600048a70.json
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
.sqlx/query-9d46594c3dda50dc84defee87fa98210989dd59b06941a5e71b6661f059c9692.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
.sqlx/query-b0c29c51bd3ae5b93d487471a98ee9bbb43a4df468ba781852b137dd315b9608.json
This file was deleted.
Oops, something went wrong.
10 changes: 8 additions & 2 deletions
10
...a7658d16034b01a35558cb42fa9c16185eb5.json → ...9c02de214299004ea182f5eae93396e1d313.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
.sqlx/query-e37ecb6dc1509d390bb6f68ba25899d19f693554d8969bbf8f8ee14a78adf0f9.json
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
.sqlx/query-e9d863c1793939d5ae7137d810f23d06460c28a9058b251448e3786c436f80cd.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.