Commit Graph

36 Commits

Author SHA1 Message Date
Earlopain
a3a508c92c
[Takedowns] Fix vericode for frozen string literals
Will add some tests later
2024-02-27 17:32:34 +01:00
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
6a73273f67
[Takedowns] Strip email and source field 2023-10-30 16:25:20 +01:00
Earlopain
81ab93b7ee
[Takedowns] Fix adding by tag search
Broken with b4e16fa0fd
2023-09-21 19:06:18 +02:00
Earlopain
b4e16fa0fd
[Elasticsearch] Implement Response 2023-09-16 15:30:28 +02: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
79bada3392
[Search] Unify user lookup
There was lots of duplication between id/name searching, with a plethora
of different approaches. Now it's all in one place.
A few places that didn't have name/id search previously now do.
2023-08-04 20:46:59 +02:00
Earlopain
49fb99b0ac
Merge pull request #534 from clragon/ascension
[Search] Allow ascending order for IDs
2023-08-01 20:36:13 +02:00
clragon
3a2987c84f
[Search] Allow ascending order for IDs 2023-07-07 14:55:30 +02:00
Earlopain
3b26b0d30c
[Cleanup] Remove takedown PRETTY_STATUS
This never worked because of string/symbol key mismatch
2023-06-28 17:14:58 +02:00
Earlopain
0c739a90ae
[Sidekiq] Switch back to enqueuing the proper class 2023-05-01 18:19:26 +02:00
Earlopain
c4e33651c6
[Sidekiq] Enqueue the previously added jobs 2023-05-01 16:42:21 +02:00
Earlopain
53c365fd9f
[Takedowns] Tweak rate limiting
Previously you could create one every 5 minutes. Now you can create a max of 5 per day.
Also prevents you from creating takedowns should you be ip banned.
2023-02-26 13:26:08 +01:00
Zwagoth
5187d4b15c
Revert "[Sidekiq] First step to convert jobs to ActiveJob form" 2023-01-17 03:18:36 -05:00
Earlopain
bf8fa55094
[Sidekiq] First step to convert jobs to ActiveJob form
See https://keygen.sh/blog/how-to-change-the-signature-of-a-sidekiq-job
2023-01-13 19:57:20 +01:00
Earlopain
98856cb1bd
[Takedowns] Don't add post #621 found in the domain name
The same also applies to pools and sets.
The existing code only sanitized the ids admins are able to add
2022-10-17 19:38:18 +02:00
Earlopain
7531fc9894
[Cleanup] Remove an assortment of unused code 2022-07-11 20:17:24 +02:00
Earlopain
fc285ad3c3
[Search] Remove legacy sort options
Also removes an unnecessary default for the order of tag_relations

This puts nil in the params, making them non `empty?` and showing
the search form even when no parameters are set  in the url
2022-04-02 16:52:38 +02:00
Kira
c9c7e5aa04 [Takedowns] Strip urls to prevent adding post 621 to takedowns 2021-04-24 20:50:53 -07:00
Kira
96e37d83e4 [Jobs] Update jobs to use new unique locking params method
Sidekiq unique jobs updated the way jobs specify which arguments
are used to uniquely identify them. Added locking to some jobs that
should never run in parallel with the same item.
2021-02-25 12:08:09 -08:00
Kira
9bbc5afe28 [Rails] More deprecation warnings 2021-02-25 12:08:09 -08:00
Kira
2ea99656b1 [Takedown] Fix exception with empty post list 2020-05-05 19:52:51 -07:00
Kira
ca68807745 [Takedowns] Fix formatting further 2020-05-05 10:01:44 -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
4948408f3b Fix takedown add by tags including deleted posts 2020-04-16 16:23:32 -07:00
Kira
8950c70e5b Fix bad rate limit on takedowns 2020-04-02 04:05:59 -07:00
Kira
01a7c63e6d Search for takedowns 2020-03-07 15:11:29 -08:00
Kira
7efd7ceda1 Fix up takedowns 2020-02-13 23:17:42 -08:00
Kira
b64d223b46 Update validations to use new syntax 2019-09-05 05:59:51 -07:00
Kira
62829370d7 Length limits on most things 2019-09-05 00:26:18 -07:00
Kira
661eeaa590 Bad references to is_moderator? 2019-07-23 10:07:39 -07:00
Kira
e2a4323032 Updated user bitflags and takedown count fix 2019-06-05 10:29:00 -07:00
Kira
e62099af44 A whole boatload of elasticsearch changes
Makes index job unique to account for changes to update triggering.
Fixes instances of mixed SQL and ES searches with tag_matches.
Adds utility methods for exists? and count_only ES searches.
Adds comment_bumped_at for comments page usage.
Adds random seeding capability.
Fixes random searches not working correctly.
Fixes status:active.
2019-03-28 14:04:01 -07:00
Kira
6f1d47c10b Add ticket infrastructure. 2019-03-13 14:04:59 -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