Commit Graph

18 Commits

Author SHA1 Message Date
Earlopain
fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00
Earlopain
056ce3e7aa
[Cleanup] Remove without_safe_mode from CurrentUser
It really did two things and was primarily intented for automated actions
so that all posts get matched regardless of rating and status.
Now there's a dedicated method to do just that
2023-09-11 18:30:25 +02:00
Earlopain
e95235f8cc
[Users] Add more access check methods
Removes the need for manually writing these and also fixes a few places
which didn't didn't do that in the first place.
This will be useful as more of these granular permissions are added.
2023-06-12 18:23:39 +02:00
Earlopain
ab6ea4642a
[Takedowns] Prevent processing by non-bd staff
The UI still looks like it would be possible to edit, but it's not.
Changing that would be more trouble than it's worth.
There is also no way to set this flag through the site. This is by design
2023-04-25 19:53:07 +02:00
Donovan Daniels
8d3c8f40c3
[Search]: Change explicit value checks to truthiness/falseness checks 2023-04-05 04:59:08 -05:00
Earlopain
1a94acb6f6
[Users] Moderator permission tweaks 2022-12-23 16:35:37 +01:00
Earlopain
2f69a127c7
[Takedowns] Create ModAction on delete 2022-10-17 15:59:29 +02:00
Earlopain
a9b6970956
[Controllers] Always allow search[id] parameter
It works for controllers which allow every parameter, but they need to be
explicitly set when permitting

Noticed because of e397a10e0d
2022-02-06 15:19:08 +01:00
Kira
ca68807745 [Takedowns] Fix formatting further 2020-05-05 10:01:44 -07:00
Kira
1e9b4d9ff9 Fix takedown response formatting 2020-05-05 09:37:46 -07:00
Kira
221c494712 [Takedowns] Implement hacky takedown search
Until a proper migration is made up and deployed this should keep
things running. Not sure why I picked strings for takedowns instead
of arrays, but I did.
2020-04-16 17:33:06 -07:00
Kira
45aeba3e14 Quick confirmed deletion action 2020-02-21 21:40:37 -08:00
Kira
7efd7ceda1 Fix up takedowns 2020-02-13 23:17:42 -08:00
Kira
cc71812fda Remove xml respond_to 2020-01-02 10:16:54 -08:00
Kira
b41d91fa16 Add back SQL based tag search
In order to avoid making some terrible batch loading of posts by
ids for ES, add back the existing tag search method. This can
be removed at a later time when a batched loader is added.

This also fixes a few instances of count methods.
2019-03-28 14:43:02 -07:00
Kira
b5db278311 Test and bring tickets closer to completion
Add links to report items to all of the reportable areas of the
site.

Fix a lot of errors surrounding views and bad expectations from
the old codebase.

Change how dmails can be viewed to match the old logic. This prevents
users from creating links to their own dmails that can be shared with
moderators, and instead forces them to be reported.

Sets are still not implemented, so the reporting area for them has
not been tested or revised. That will happen at a later phase when
sets go in.
2019-03-14 19:10:33 -07:00
Kira
7b97883d29 Finish up takedowns 2019-02-27 03:47:23 -08:00
Kira
118459af1b Takedowns 2019-02-23 08:45:10 -08:00