DEV: Remove usages of enable_personal_messages (#18437)

cf. e62e93f83a

This PR also makes it so `bot` (negative ID) and `system` users are always allowed
to send PMs, since the old conditional was just based on `enable_personal_messages`
This commit is contained in:
Martin Brennan
2022-10-05 10:50:20 +10:00
committed by GitHub
parent 2d391565e4
commit f5194aadd3
28 changed files with 117 additions and 46 deletions
+1
View File
@@ -117,6 +117,7 @@ RSpec.describe WatchedWord do
end
it "doesn't need approval in a private message" do
Group.refresh_automatic_groups!
manager = NewPostManager.new(
tl2_user,
raw: "Want some #{require_approval_word.word} for cheap?",