Commit Graph

11156 Commits

Author SHA1 Message Date
Sindrake
26e1edc0cb [Misc] Fix erb file associations
Not sure how this even happened.
2024-07-17 18:23:49 -07:00
Sindrake
60351ed8e4 Merge branch 'linter' 2024-07-17 15:45:24 -07:00
Sindrake
6cbe400cc5 [ESLint] Fix style complaints 2024-07-17 14:22:24 -07:00
Sindrake
82891b91d1 [ESLint] Fix core complaints 2024-07-17 11:26:58 -07:00
Sindrake
697efbc376 [JS] Add ESLint support 2024-07-17 08:43:55 -07:00
Donovan Daniels
8a535ebb95
[PostReplacements] Allow setting additional_source & reason in url (#667) 2024-07-16 08:10:51 -07:00
Sindrake
994494814b [Uploader] Minor fix 2024-07-15 17:37:27 -07:00
Sindrake
ca8e9406e9 [Uploader] Add more query parameters and clean up
Fixes #671 by adding query parameters for artist, character, species, and context tags, as well as the post rating.

Additionally, the inputs had incredibly counter-intuitive names. That had also been fixed.
2024-07-15 17:15:26 -07:00
Sindrake
727df848f7 [NewsUpdates] Enable API endpoint for index
Also cleaned up some auto-correctable style issues.
2024-07-15 14:01:12 -07:00
Donovan Daniels
af0036db6b
[Forums] Clean up permission checks (#674) 2024-07-14 13:14:09 -07:00
Donovan Daniels
d9f6653e02
[Posts] Overhaul destroyed posts (#672) 2024-07-13 17:05:50 -07:00
Sindrake
c186b4ee2f [PostFlags] Add a new flag for banned content 2024-07-12 18:07:31 -07:00
Donovan Daniels
ac0ef59b3e
[Pools] Fix ordering returning error 406 (#668)
Fixes #555
2024-07-12 08:55:35 -07:00
Sindrake
8f702da82a [DB] Reverse the order of migrations
That's how they want to be now, evidently.
2024-07-12 02:43:04 -07:00
Sindrake
be9dae5a5d [Blacklist] Fix an error caused by a nil blacklist 2024-07-08 14:32:59 -07:00
Sindrake
1e7011b07b [PostEvents] Fix an error caused by the event action not being found 2024-07-08 10:00:14 -07:00
Sindrake
6d285957ca [Misc] Remove minor h1 and h2 mobile style tweaks
Absolutely no idea what happened here.
Both of these seem rather pointless.
2024-07-07 17:23:09 -07:00
Sindrake
807232557b [Misc] Tweak the CSS of the site notices 2024-07-07 17:02:42 -07:00
Sindrake
69207aa60d [Posts] Add a toggle for the janitor toolbar
The toolbar gets in the way when browsing the site with no intentions of handling posts.
2024-07-07 16:11:27 -07:00
Sindrake
1b31f4bda5 [Posts] Reload the page when undeleting a post 2024-07-07 14:46:46 -07:00
Sindrake
0adeff645d [Posts] Keep search params when disapproving posts
Specifically, the issue manifested when using detailed disapprovals.
2024-07-07 11:43:35 -07:00
Sindrake
df3f33ed82 [Blacklist] Always set the blacklist metatags
Not doing this breaks the anonymous blacklist, but only if the default blacklist is empty.
2024-07-02 11:18:12 -07:00
Donovan Daniels
6011b9f7bc
[Bans] Enable API for index & show (#659) 2024-06-30 09:14:37 -07:00
Donovan Daniels
6d1b15eab4
[PostEvents] Add event for changing background color (#655) 2024-06-28 09:26:01 -07:00
Tarrgon
0df2e77ab5
[Posts] Generate samples with background color (#649) 2024-06-28 09:13:52 -07:00
Donovan Daniels
4f61a94504
[StaffNotes] Fix body searching (#654) 2024-06-27 16:17:40 -07:00
faucet
715ea9bddb
[Posts] Allow some of the Related links when a post isn't visible (#648) 2024-06-27 15:39:43 -07:00
Donovan Daniels
165cd315e9
[UploadWhitelist] Make upload whitelist case insensitive (#651) 2024-06-27 15:27:08 -07:00
Sindrake
ea8c7d79ff [Posts] Fix video samples not working in iOS
Band-aid fix, but it should work for now.
Evidently, while iOS does support WEBM now, it does not handle vp9 well.
2024-06-27 09:08:50 -07:00
Earlopain
59f5fda98f
[Gems] Back to rack 3 again
The issue has already been fix upstream
2024-05-10 11:02:03 +02:00
Earlopain
643cbff636
[Gems] Back to rack 2 again, for now
https://github.com/Shopify/pitchfork/issues/117
Needs https://github.com/rack/rack/pull/2062
2024-05-09 15:24:05 +02:00
Earlopain
e4a5764d0b
[Prod] Inline the memory calculation
`Pitchfork::MemInfo` is not public. This also fixes the numbers being off by
a factor of 1024 since pitchfork returns kB, while unicorn-worker-killer used to handle bytes.

Add the amount of requests done after the worker get killed for memory reasons
2024-05-08 16:35:11 +02:00
Earlopain
401866b68a
[Prod] Simplify implementation of worker killer
Credits to byroot for pointing me in this direction
2024-05-07 21:54:25 +02:00
Earlopain
4c58f4988f
[Prod] Share pitchfork config
Somewhat exercise the custom logic during development
2024-05-07 21:54:25 +02:00
Earlopain
2c60ec69c8
[Prod] Replace unicorn with pitchfork
pitchfork is a unicorn fork with some things removed and some things added.
We don't need any of these things so it should be an easy replace.
There is no worker-killer for pitchfork, it is however trivial to implement ourselves.

unicorn is pretty much dead. The author implies as much in the various readme updates
he made. It also doesn't work with rack 3 and I doubt a new release will even be made.
If it will, it highly likely won't be on rubygems.
2024-05-07 21:54:25 +02:00
Earlopain
d7ece18a1c
[Posts] Fix the iqdb remove job
More faraday fallout. For delete requests, it expects this parameter to be iterable (if present)
2024-05-07 21:52:54 +02:00
Earlopain
c60ee96133
[Posts] Fix an error during uploads for 404/etc.
This line wasn't properly updated for faraday
2024-05-07 16:47:57 +02:00
Earlopain
d835d55c54
[Misc] Increase faraday open_timeout
This was previously mistyped which made it fall back to the default of 60 seconds.
Apparently 5 is not enough since there are a few errors on prod for this
2024-05-06 19:14:34 +02:00
Earlopain
0996a981d0
[Gems] Bump request_store
Has a bugfix that may be relevant
2024-05-04 15:07:32 +02:00
Earlopain
a7ef80074d
[Cleanup] Resolve some easy ruby warnings
Mostly duplicate method warnings
2024-04-28 11:59:37 +02:00
Earlopain
f51e0e85cf
[Ruby] Bump to 3.3.1 2024-04-28 11:46:36 +02:00
Earlopain
0dce1e50f2
[Users] Add a reasonable length limit on emails
The spec allows for addresses up to 255. A limit of 100 impacts 3 users right now
2024-04-28 11:28:07 +02:00
Earlopain
5f6fa2b83d
[JS/Gems] Bump packages/gems 2024-04-28 11:07:10 +02:00
Earlopain
e002cc165f
[Gems] Bump RuboCop 2024-04-28 11:05:37 +02:00
Earlopain
d01c8c131d
[Misc] Replace httparty with faraday
We already pull in faraday from opensearch-ruby.
httparty hasn't had a release in a while and it printing warnings on ruby 3.3
2024-04-27 23:01:10 +02:00
Earlopain
58f9a18915
[Tests] Improve/Add tests around network requests 2024-04-27 13:57:51 +02:00
Earlopain
75ea36b700
[Cleanup] Remove unused size method from file class 2024-04-26 15:58:18 +02:00
Earlopain
b058077cf0
[Misc] Add a method that returns the base url for network requests
This makes it easier to stub in tests.
Also add a method to the iqdb proxy to say if it is enabled or not and use it everywhere.
2024-04-26 15:57:56 +02:00
Earlopain
988b607c57
Merge pull request #638 from DonovanDMC/note-previews-posts
[Notes] Remove note previews, replace with dtext previews
2024-04-21 19:40:09 +02:00
Earlopain
4df14cfec5
Merge pull request #635 from DonovanDMC/artists-new-link
[Artists] Fix "new" link in link_to_artist
2024-04-21 19:34:48 +02:00