Earlopain
7304559c52
[DB] Make the port configurable
2023-03-14 00:27:43 +01:00
Earlopain
54247d26ba
[ExceptionLog] Move git code into module
2023-03-10 22:15:10 +01:00
Earlopain
86a6e94390
[Docker] Update unicorn config for development
2023-03-10 17:27:00 +01:00
Earlopain
257e717e56
[README] Document windows executable bit issues
...
This also adds/removes +x on a few files which should/shouldn't have it.
2023-03-04 14:20:39 +01:00
Earlopain
6776704560
[DB] Upgrade to postgres 15
...
Execute the following commands, before pulling:
docker-compose up -d
docker-compose exec postgres pg_dump danbooru2 -U danbooru > backup.sql
docker-compose down
docker volume rm e621ng_db_data
Execute the following commands, after pulling:
docker-compose up -d
docker-compose exec -T postgres psql -d e621_development -U e621 < backup.sql
This also changes the name of the database and role.
Now seems like a nice opportunity to do so.
2023-03-01 20:31:49 +01:00
Earlopain
acbe23981b
[DB] Only evaluate prod config on prod
...
Fixup for b43f0cbbb0
2023-02-28 15:48:42 +01:00
Earlopain
b43f0cbbb0
[DB] Loudly fail on prod when DB env variables aren't set
2023-02-28 15:38:34 +01:00
Earlopain
7fdb7368db
[CI] Upload log after test run
...
Should make it easier to understand why random failures are happening.
Remove the manual logging in the application controller. Just look in your logs instead.
This also reduces the log level for tests.
Log files are now 700KB instead of 28MB per run.
2023-02-26 15:53:26 +01:00
Earlopain
a98483f61b
[Posts] Use the new tag_string index in the PostQueryBuilder
...
This is only used as a subselect, which means that there is no need to order.
The source metatag uses a non-existant function, remove it.
No need to check for deleted posts, it's desired to show deleted thumbnails
on the post flag index for example.
2023-02-25 18:40:41 +01:00
Earlopain
09be4cded9
[CI] Commit database.yml
...
Makes the test setup easier.
Also eases prod deploys with the two separate db pool sizes.
2023-02-25 14:41:07 +01:00
Earlopain
eaf125ef25
[Cleanup] Remove FalseClass monkeypatch
2023-02-22 19:37:13 +01:00
Earlopain
ab4366130f
[Cleanup] Remove unused config files
2023-02-22 19:37:13 +01:00
Earlopain
c314c0f33f
Merge pull request #473 from faucetlol2/exclusion
...
Add warning tags to artist exclusions
2023-02-19 20:10:31 +01:00
faucet
125cdd060a
Add warning tags to artist exclusions
2023-02-15 03:49:01 +00:00
Earlopain
6f797f5e24
[Cleanup] Remove config.twitter_site
...
It's not set
2023-02-11 17:36:33 +01:00
Earlopain
a221e1cfa5
[Config] Add defaults for discord integration
2023-02-11 17:34:10 +01:00
Earlopain
f956349592
[PostFlags] Remove 48 hour reason
...
Discussed internally. The only real use case of this is artists wanting
their own art removed, and we already have takedowns for that.
2023-01-26 21:46:20 +01:00
Earlopain
8b28393596
[Misc] Move to org
2023-01-23 20:43:56 +01:00
Earlopain
19d8d9006b
[Posts] Fix spelling for predefined deletion reason
2023-01-12 12:53:59 +01:00
Earlopain
f6b53dd0d3
Merge branch 'moderator-role'
2023-01-11 17:05:37 +01:00
Earlopain
af13018639
[Cleanup] Remove tag "Mass Update"
...
Make a BUR instead.
2022-12-27 22:02:42 +01:00
Earlopain
03d575cbdb
[BURs] Remove "Alias & Implication Import"
...
This doesn't create a bur to look at after. Just make a bur and skip
forum creation if that's what you want.
2022-12-26 20:05:08 +01:00
Earlopain
de726f46de
[Pools] Remove import functionality
2022-12-24 12:48:17 +01:00
Earlopain
b6f006a353
[Cleanup] Remove forum topic merging
2022-12-23 16:58:32 +01:00
Earlopain
60ebe9f467
[JS] Unvendor jQuery and update to latest version
2022-12-22 15:11:05 +01:00
Earlopain
f744463d29
[Config] Decouple default blacklist from user customization
2022-12-22 12:44:07 +01:00
Earlopain
1671c3bbc6
[Misc] Disable metrics by default
2022-12-17 19:24:15 +01:00
Earlopain
e262f06a93
[Cleanup] Remove NoteSanizier
...
Notes are formatted using dtext only. Even though the existance of this
class suggests that some html elements are allowed, it doesn't actually do anything.
Link relativization also didn't work, same with dtext colors.
2022-12-17 17:00:27 +01:00
Earlopain
34bcb27482
[Rails] load_defaults 7.0
...
Also see #439
I was confused about wrap_parameters_by_default. It's actually not relevant
for us since every controller params are wrapped in params.require(:model),
which means that wrapping is forced through that.
wrap_parameters.rb was setting the new default through other means already
though, so even if it's required somewhere there are no functional differences.
2022-12-09 19:07:08 +01:00
Earlopain
f238dca8cb
[Cleanup] Remove staging environment
2022-12-09 18:55:58 +01:00
Earlopain
934c8e3b87
[Docker] Run daily maintenance
...
Remove whenever, it's not used in prod. Prod uses systemd timers.
This executes the daily task on container startup. My PC isn't going to
run when this would execute 99% of the time.
2022-12-09 18:16:53 +01:00
Earlopain
731fc5a42f
[Users] Style usernames by default
...
This only takes effect when logged out and for newly created accounts.
2022-11-27 17:44:03 +01:00
Zwagoth
debb6fe993
Merge pull request #439 from zwagoth/rails-7
...
Rails 7
2022-11-24 17:13:58 -05:00
Earlopain
cd837d2eb8
[Misc] Update config to more closely resemble prod
2022-11-09 17:32:32 +01:00
Earlopain
e198c77b93
[Posts] Enable reloading of elastic paginator for dev
...
to_prepare is run on every code reload in dev, and once on startup for prod
2022-10-23 19:58:41 +02:00
Earlopain
dd3fb80b8c
Merge remote-tracking branch 'origin/master' into rails-7
2022-10-23 19:35:57 +02:00
Earlopain
b5fbc1e2eb
[Home] Add dynamic mascots
2022-10-15 21:40:40 +02:00
Earlopain
d473ea5097
[Files] Allow passing custom options to validator
...
Move the config values around so that the error message stays the same order
2022-10-15 16:30:33 +02:00
Earlopain
a36455d05e
[Posts] Move the ai deletion reason to a different category
2022-10-14 21:35:10 +02:00
Earlopain
9e1c7c7e27
[Posts] Add some more predefined deletion reasons
2022-10-13 20:44:53 +02:00
Earlopain
2579442184
[Rails] Fix deprecations and use new framework defaults
...
* to_s(:format) is deprecated, use to_fs(:format)
* ActiveRecord::Associations::Preloader is gone
* Don't use CurrentUser in config, it's not autoloaded anymore
* Defer elastic initialization to after the module is loaded
2022-10-10 13:26:12 +02:00
Earlopain
fbc06182cc
[Rails] Update to 7 and run app:update
2022-10-10 13:22:35 +02:00
Earlopain
ad4da53808
[Routes] Add redirect for old takedown links
2022-09-27 19:30:05 +02:00
Earlopain
5c755ddefc
[Replacements] Mark certain tags for approval
2022-09-25 13:05:33 +02:00
Kira
344dd032be
[Internal] Add in house visitor metrics support.
2022-09-20 11:11:03 -07:00
Earlopain
eb5d001b55
[Posts] Remove the modqueue
...
Truly the end of an era. This page was trash and nobody was using it.
This will make it easier to make changes to the approval flow people actually use.
2022-09-13 16:14:00 +02:00
Earlopain
b78d55fdd3
[Posts] Add new flag reason for pending posts
2022-08-20 18:19:08 +02:00
Earlopain
c8401ab6b1
[Posts] Fixes wrong redirect for old popular page
...
Also fix it being marked as "More" in the nav links
2022-08-20 13:49:25 +02:00
Earlopain
8c842fef7e
[Posts] Move popular posts route to /popular
2022-08-06 11:07:25 +02:00
Earlopain
7531fc9894
[Cleanup] Remove an assortment of unused code
2022-07-11 20:17:24 +02:00
Earlopain
487fd576aa
[Exceptions] Only log commit, add quick link to user
2022-07-10 19:11:32 +02:00
Zwagoth
22f50e03a5
Merge pull request #396 from zwagoth/ruby-3
...
Ruby 3.1
2022-06-08 09:27:53 -04:00
Earlopain
1c51a35484
[JS] Fix images not loading in older browsers
...
The vue 3 bundle isn't transpiled down as much as we need it to,
this will run it through our transpile step
2022-06-01 21:37:07 +02:00
Earlopain
57f711bb4d
Merge branch 'master' into ruby-3
2022-05-28 15:45:25 +02:00
Earlopain
2af251b387
[Uploads] Allow denying uploads per user level
2022-05-22 21:17:12 +02:00
Earlopain
3108613b0e
[EmailBlacklist] Unverify existing users on create
2022-05-22 15:21:41 +02:00
Earlopain
c40e94c2d2
Merge pull request #416 from zwagoth/vue-3
...
Vue 3
2022-05-21 22:28:54 +02:00
Earlopain
92d049690a
[Vue] Remove the compat build
2022-05-21 15:45:22 +02:00
Earlopain
9367e9a336
[Vue] Fix other warnings and set compat mode to 3
2022-05-21 15:38:04 +02:00
Earlopain
9d55ede1cb
[Vue] Switch to migration build
2022-05-20 22:48:18 +02:00
Earlopain
3a69cd3578
[Cleanup] Remove accept_terms_of_service
...
The 18+ popup already covers this, and the message was never displayed anyways.
2022-05-16 20:41:30 +02:00
Kira
500df9d3ee
[Mod] Allow exporting address lists for PII requests.
2022-05-05 12:17:50 -07:00
Kira
c993cd29f0
[Misc] PP prep
2022-05-04 11:33:31 -07:00
Earlopain
0af0956692
[Tags] Add oc: prefix for character types
2022-05-03 18:58:45 +02:00
Earlopain
84889d9f18
[Cleanup] Remove unused tag config stuff
2022-05-03 18:58:11 +02:00
Earlopain
c930c9ee52
[Cleanup] Remove unused binstubs + capistrano
2022-04-25 21:10:20 +02:00
Zwagoth
eb87b5d27d
Merge pull request #376 from zwagoth/db-gem-clean
...
Cleanup gems and database
2022-04-25 06:04:36 -04:00
Earlopain
9833561942
[Rails] Remove old framework_defaults files
...
The only change is `urlsafe_csrf_tokens`, which is now true.
`cookies_same_site_protection` was specified at another place,
:lax is now the default and can be removed
2022-04-13 12:02:01 +02:00
Earlopain
5528f43b0d
[Sessions] Remove GET
logout route
...
No more accidentally logging out just because you clicked on a link
https://e621.net/forum_topics/31292
2022-04-09 22:45:00 +02:00
Earlopain
c40fe2fae9
[Misc] Fix ruby 3 deprecation warnings
2022-04-09 13:40:30 +02:00
Earlopain
3de690961d
[Cleanup] Remove unused gems and tables/columns
2022-04-07 19:17:33 +02:00
Earlopain
26d755b895
[Cleanup] Remove sftp storage manager
2022-04-07 18:23:02 +02:00
Earlopain
037bffe5ae
[Cleanup] Remove unnecessary search routes
2022-04-02 15:00:31 +02:00
Earlopain
1eff0215ac
[Layout] Fix boolean styling in simple_form
2022-03-30 16:57:51 +02:00
Earlopain
d0db1dd2dd
[Cleanup] Remove modqueue tag coloring
2022-03-28 19:16:45 +02:00
Earlopain
a80c9af67f
[Uploads] Improve invalid file ext error reporting
2022-03-21 16:50:17 +01:00
Earlopain
fba2c8a505
[Uploads] Add site toggle to disable uploads
2022-03-17 16:26:15 +01:00
Earlopain
2a4f97610e
[Cleanup] Remove more upload attributes
2022-03-16 18:34:23 +01:00
Earlopain
dd8aa8199b
[Cleanup] Remove modqueue random
2022-03-16 15:48:29 +01:00
Earlopain
a7de562385
Revert "[Cleanup] Remove post report reasons"
...
This reverts commit 6b6e19db38
.
2022-03-08 11:32:18 +01:00
Earlopain
6902434a90
[Replacements] Remove hourly limit
...
The normal upload limit is still in effect though.
Fixes #379 by completly ignoring the actual problem.
2022-03-05 17:23:53 +01:00
Earlopain
b37bb3c001
[Cleanup] Remove remaining delayed jobs code
2022-03-05 16:09:28 +01:00
Earlopain
5a88be7d2d
[Cleanup] Remove spam detection
...
Checked for is_gold, which doesn't work anyways
2022-03-05 16:05:53 +01:00
Earlopain
e01ab43577
[Cleanup] Remove janitor trials
2022-03-05 15:58:30 +01:00
Earlopain
6b6e19db38
[Cleanup] Remove post report reasons
...
Users must select a reason when reporting a post, but that wasn't
displayed in tickets for about 2 years now
2022-03-05 14:20:14 +01:00
Earlopain
86dc0c80e9
[Replacements] Automatically remove bvas on approve
...
Closes #377
2022-02-19 18:45:35 +01:00
Earlopain
e3728546c7
[Cleanup] Remove artist banning
2022-02-19 16:54:26 +01:00
Earlopain
ac5e8673ca
[Cleanup] Remove most source strategy code
2022-02-19 15:55:26 +01:00
Earlopain
3857eeccf3
[Cleanup] Remove some storage manager code
2022-02-19 14:25:13 +01:00
Earlopain
451e23c121
[Cleanup] Remove dead related tags code
2022-02-19 14:11:49 +01:00
Earlopain
f7ba9c5043
[Cleanup] Remove post appeals
2022-02-11 17:05:09 +01:00
Earlopain
7aa6adeae4
[Cleanup] Remove donmai specifics
2022-02-09 15:39:18 +01:00
Earlopain
a135c2a592
[Cleanup] Remove reportbooru
2022-02-09 15:39:07 +01:00
Earlopain
96d9b7e310
[Cleanup] Remove recommender service
2022-02-09 15:37:44 +01:00
Earlopain
e9f7ac85bf
[Cleanup] Remove artist commentaries
2022-02-03 17:02:49 +01:00
Earlopain
5ebc8756c9
[Cleanup] Remove more danbooru specific code
2022-02-03 16:41:10 +01:00
Earlopain
6f8b4001e0
[Cleanup] Remove danbooru cloudflare purge cache functionality
2021-11-20 21:18:29 +01:00
Earlopain
b1f10089d2
[Cleanup] Remove sources controller
2021-11-20 22:03:59 +01:00
Zwagoth
37a9137096
Merge pull request #364 from zwagoth/post-events-log
...
Post events log
2022-01-31 13:05:05 -05:00
Earlopain
1c6b2dcba9
[Users] Remove special casing for name change feedback
...
Part of old danbooru code, these feedbacks where never created on e6.
Also remove name change approve/reject controller actions, it's all automatic
2022-01-22 16:20:49 +01:00
Kira
d532cd28c5
[Login] Add captcha to login page.
2022-01-09 12:39:53 -08:00
Earlopain
aa77f1a76a
[Posts] Save post events in separate table
...
Part of #346
2022-01-06 13:44:30 +01:00
Earlopain
05c704b83d
Merge pull request #353 from zwagoth/docker-iqdb
...
[Docker] Add iqdb/s to composer
2022-01-05 14:03:26 +01:00
Zwagoth
0d531ff146
Merge pull request #284 from Earlopain/replacements-audit
...
Add replacement tracking for uploader
2022-01-02 19:56:10 -05:00
Earlopain
0e6640871f
[TagAlias] Add redirect for old aliases in forum requests
2022-01-02 13:04:59 +01:00
Zwagoth
163bf18e84
Merge pull request #345 from zwagoth/blacklist-rework
...
Fix blacklist not applying on videos
2021-12-03 14:43:14 -05:00
Earlopain
65383ca5c1
[Docker] Another batch of review improvements
...
* Fix boolean value in compose file. I just removed the variable altogether,
the iqdb site already checked against iqdbs_server.present? anyways
* Add checksum check for iqbd download
* Fix newline in iqdb patchfile
2021-11-18 19:13:00 +01:00
Earlopain
71aab10d18
[Docker] Add iqdb/s to composer
...
Closes #315
2021-11-18 01:13:38 +01:00
Earlopain
765c6769fb
[Blacklist] Simplify hiding logic
...
Instead of switching out the src just hide the element.
This removed quite a bit of code and the blacklist now works with webm.
Fixes #318
2021-11-17 18:08:13 +01:00
bitWolfy
21ed3764ce
Merge branch 'master' into formatting-helper
2021-11-17 01:54:29 -08:00
Zwagoth
f519e889b1
Merge pull request #352 from zwagoth/docker
...
Replace vagrant with docker
2021-11-16 23:33:25 -05:00
Earlopain
8009972e9b
[Flags] Fix some words in the avoid posting flag reason
2021-11-15 18:31:25 +01:00
Earlopain
061176e095
[Setup] Ignore limits when seeding
...
This makes the environment config understand booleans. If something
ends with "?" it tries to interpret it as a boolean. A bunch of
existing configs where changed to reflect this change.
2021-11-14 22:16:36 +01:00
Earlopain
ce871e412c
[Setup] Improve docker setup
...
* Reduces the image size by using alpine and cleaning up after some things
* Simplify the initial setup instructions slightly
* Access via localhost:3000 instead of e621.local
2021-11-14 14:12:51 +01:00
Earlopain
7c972ecf91
[Setup] Replace vagrant with docker
2021-11-14 03:31:26 +01:00
Earlopain
0d06391298
[Misc] Remove unused install/docker files
2021-11-13 14:25:52 +01:00
Earlopain
ef0e81156c
[Config] Align max pages with live site
2021-11-02 14:32:40 +01:00
Earlopain
34cc839016
[Config] Remove upload feedback thread
...
This isn't used on e6 and someone might make this thread and have it
appear for other users
2021-11-02 14:30:38 +01:00
bitWolfy
db8cf6cb74
[UI] Add formatting buttons to DText inputs
2021-10-31 20:30:37 -07:00
bitWolfy
0c99e12095
[Flags] Fix a typo on the 48 hour reason explanation
2021-10-17 23:02:23 -07:00
bitWolfy
2d76eae435
[Flags] Re-arrange the config values for clarity
...
48 hour flag reason ended up under the deletion reasons because of a rebase gone awry
2021-10-17 22:00:18 -07:00
bitWolfy
8aee306952
[Flags] Fix a configuration error
...
Rebasing the branch went wrong
2021-10-17 21:55:59 -07:00
bitWolfy
b589931b9d
[Flags] Tweaks to the 48 hour deletion reason
2021-10-17 21:39:13 -07:00
bitWolfy
f39ee08820
[Flags] Redesign the new flag page
2021-10-17 21:37:37 -07:00
bitWolfy
1170c4a71c
[Posts] Minor changes to the prebuilt deletion reasons
2021-10-17 10:04:24 -07:00
bitWolfy
c70ed04e40
[Posts] Add pre-built deletion reason selector
2021-10-14 10:41:01 -07:00
Earlopain
bdeb4b3501
[IQDB] Remove dead code
2021-10-02 21:15:48 +02:00
Earlopain
7b3077e348
[PostSets] Remove atom feed
2021-10-02 21:02:41 +02:00
Kira
088a6a2740
[JS] Try to fully target older browsers
2021-09-30 02:26:05 -07:00
Kira
3da92e81e7
[JS] Because I was forced to upgrade webpack and redo everything from scratch
...
This is probably going to be partially broken somehow. Let's find out.
2021-09-22 23:29:14 -07:00
Zwagoth
bc283e9284
Merge pull request #296 from Earlopain/blacklist-sizing
...
Fix blacklisted posts starting out with original sizing instead of the users setting
2021-09-23 00:26:39 -04:00
Earlopain
869d3dd8e7
Merge remote-tracking branch 'origin/master' into blacklist-sizing
2021-09-05 19:28:39 +02:00
Earlopain
d8b00bf94b
[Rails] Allow easy disable of the cache_store
...
Setting it in the individual environment config does not work because it
was overwritten by the cache_store.rb initializer
2021-08-24 19:22:01 +02:00
Zwagoth
0b0184fca1
Merge pull request #294 from Earlopain/readonly
...
Add readonly mode
2021-08-12 09:59:28 -04:00
Zwagoth
4b4afd0f90
Merge pull request #297 from Earlopain/misc-again
...
Misc again
2021-08-04 08:05:38 -04:00
Zwagoth
522676bb08
Merge pull request #288 from Earlopain/cors
...
[CORS] Allow authorization header
2021-08-03 18:46:38 -04:00
Earlopain
18fb718658
[Posts] Update embeded title to account for 3d artwork
2021-07-20 18:09:51 +02:00
Earlopain
3fd543327b
[Pools] Replace select all with a link to the gallery
...
This is not terribly useful and actually slows down my browser quite a bit
because of the huge number of entries it needs to displays
2021-07-19 18:23:30 +02:00
Earlopain
bd93c61e77
[ReadOnly] Add basic read-only mode
2021-07-18 17:50:57 +02:00
Earlopain
19f84e6acd
[Posts] Unify scale naming on post and in settings
...
Moves generation of the options from js to templates in order
to access the sample image width to display.
2021-07-18 01:35:52 +02:00
Earlopain
9564f714e6
[CORS] Allow authorization header
...
Fixes #270
2021-07-07 13:44:58 +02:00
Earlopain
6910369e2a
[Misc] Add rubocop and solargraph config
...
A bunch of rules are disabled or tweaked for the current style
2021-07-05 13:21:49 +02:00
Earlopain
5d430e8210
[Replacements] Use ajax for approve/reject/toggle/promote actions
2021-06-26 18:25:25 +02:00
Earlopain
f54e5d7f84
[Replacements] Allow toggling user penalize
2021-06-26 14:01:07 +02:00
Kira
80ba696d35
Merge branch 'staff_notes'
2021-05-18 11:14:48 -07:00
Kira
b3eb88405d
[Staff Notes] Add staff notes
2021-05-12 21:57:12 -07:00
Earlopain
f2696386a8
[Misc] Remove unused help:upload_notice
2021-05-03 13:05:00 +02:00
Earlopain
4b27ebb6f9
[Seeding] Fix system user not being promoted
2021-04-30 23:46:28 +02:00
Kira
32f4dc32a7
[Gems] Fix sidekiq warning about session secret
...
Sidekiq no longer shims its own session system, so it isn't relevant
to provide it the session key.
2021-04-30 10:12:24 -07:00
Kira
33013e0a44
[Debug] Better logging of slow queries
...
Rails is VERY opaque about which query timed out when reviewing
backtraces for code that loads relations. Often it becomes difficult
to tell exactly which query was generated.
This interrogates the exceptions for these and pulls out the SQL
and bind params for further debugging. Automatic unwrapping of
rails template exceptions is done, as a majority of these seem
to be triggered in production by relations that are lazily loaded
through templates, or template code.
Also I cleaned up the backtrace display a little bit while I was
messing with this code. Usually it isn't relevant to see the 130
lines of rails relationship loader code. Full traces are still
saved so that in the event something happens inside a gem/framework
file it can still be easily located.
2021-04-30 10:12:10 -07:00