evazion
f73bd03576
Update yarn packages.
2019-12-13 19:06:40 -06:00
evazion
c9e682f39f
Upgrade to Rails 6.0.2.
2019-12-13 18:19:52 -06:00
evazion
2202fdf086
dotenv: remove manual load of .env.local.
...
dotenv loads .env.local by default now.
2019-12-13 18:19:51 -06:00
evazion
3cc636e719
Fix uninitialized constant error with Resolv class.
...
Fix uninitialized constant error (introduced by the switch to zeitwerk?)
2019-12-13 18:19:41 -06:00
evazion
da84e3a2f2
twitter: replace twitter gem with our own API client.
...
The twitter gem had several problems:
* It's been unmaintained for over a year.
* It pulled in a lot of dependencies, many of which were outdated. In
particular, it locked the `http` gem to version 3.3, preventing us
from upgrading to 4.2.
* It raised exceptions on normal error conditions, like for deleted
tweets or suspended users, which we really don't want.
* We had to wrap it to provide caching.
Changes:
* Fixes #4226 (Exception when creating new artists entries for suspended
Twitter accounts)
* Drop support for scraping images from summary cards. Summary cards
are the previews you get when you link to a website in a tweet. These
preview images aren't always the best image.
2019-12-13 17:27:03 -06:00
evazion
0b556ece1c
Add Danbooru::Http client.
...
This is a wrapper around the http.rb gem that provides caching.
2019-12-13 15:32:21 -06:00
evazion
ddb0e4d3ce
config: refactor secret_key_base initialization.
2019-12-13 04:21:04 -06:00
evazion
6382aec85e
config: update to Rails 6.0 defaults.
2019-12-13 04:21:04 -06:00
evazion
fc5bce5595
redis: bump timeout settings.
2019-12-13 03:13:17 -06:00
evazion
ea15b525f8
config: clean up filter_parameters initializer.
2019-12-13 03:05:46 -06:00
evazion
a4e587aa6a
config: refactor email settings.
...
* Add `Danbooru.config.mail_delivery_method` option.
* Remove `Danbooru.config.aws_ses_enabled?` option.
* Replace `Danbooru.config.aws_ses_options` with `Danbooru.config.mail_settings`.
2019-12-13 03:00:12 -06:00
evazion
33e3754c2d
Update gems.
2019-12-13 02:14:20 -06:00
evazion
316690f393
storage manager: remove S3 backend.
...
Remove in favor of the rclone S3 backend.
2019-12-13 02:14:14 -06:00
evazion
92aca9ed2d
storage manager: remove fog backend.
...
Remove in favor of rclone.
2019-12-13 01:45:43 -06:00
evazion
8e93b0fc6c
/tags: fix link to [[help:tags]] in subnav menu.
2019-12-11 18:18:12 -06:00
evazion
99a1a408cd
/artists/banned, /favorites: fix redirects for non-html requests.
...
ref: https://danbooru.donmai.us/forum_topics/9127?page=287#forum_post_161549
2019-12-11 02:27:41 -06:00
evazion
afea704b55
storage manager: add rclone backend.
2019-12-11 01:44:23 -06:00
evazion
2e6486ab5f
BURs: fix exception in category change requests for new tags.
...
`category blah -> character` failed when `blah` didn't exist yet.
2019-12-10 15:17:10 -06:00
evazion
2f27a4eddd
image resizer: fix incompatibility with libvips-8.8.
...
In libvips-8.8 the `auto_rotate` option was replaced with `no_rotate`.
Using `auto_rotate` in libvips-8.8 fails, so we need a version check
here.
2019-12-10 14:04:40 -06:00
evazion
90f64eb407
image resizer: remove shell fallback for old versions of libvips.
...
Remove fallback for old versions of Debian. Debian stable now provides
libvips 8.7.
2019-12-10 14:04:40 -06:00
evazion
4b426ec5b9
storage manager: fix b2 storage bugs.
...
* B2 doesn't allow the path to start with a '/' character.
* When storing the file, we have to rewind the file pointer to make sure
we get the whole file.
2019-12-10 14:04:40 -06:00
evazion
e4f4326982
storage manager: add backblaze b2 backend.
2019-12-10 02:04:32 -06:00
evazion
6b165a90f8
tags: fix negative tag counts not being regenerated.
2019-12-10 01:43:05 -06:00
evazion
6196f7ba67
BURs: fix exception when estimating post counts of category changes.
...
Fix an error in operator precedence:
> sum + Tag.find_by_name(token[1]).try(:post_count) || 0
This was treated as `(sum + X) || 0` not `sum + (X || 0)` as intended.
This failed when X was nil.
2019-12-10 01:43:05 -06:00
evazion
e906b902d8
circleci: reduce parallelism
...
Fix circleci builds not running because parallelism was set too high (free plan is limited to 4x).
2019-12-08 00:43:39 -06:00
evazion
f24220982a
seo: don't noindex /posts?tags=order:rank.
2019-12-07 22:18:58 -06:00
evazion
fdffd3bdcb
BURs: fix "This request will be attached to" link.
...
ref: https://danbooru.donmai.us/forum_topics/9127?page=287#forum_post_161392
2019-12-07 20:09:03 -06:00
evazion
5394dbc3d2
tagging: lower happy/sad tag count thresholds.
...
Lower the frowny face tag threshold from 25 to 10 tags and the happy
face tag threshold from 35 to 20 tags.
2019-12-07 19:03:40 -06:00
evazion
5919b825d7
seo: don't hide the front page from web crawlers.
...
Don't mark the front page (empty tag search) as noindex.
2019-12-07 18:35:53 -06:00
evazion
81f7d14fa3
uploads: bump iqdb similarity threshold 65% -> 70%.
2019-12-07 11:24:39 -06:00
evazion
ea718122da
Fix #4219 : Deviantart broke download urls when not logged in.
2019-12-06 22:54:08 -06:00
evazion
1c3b96dc4e
deviantart: fix non-downloadable posts ( #4219 ).
...
Adapted from e51e1aa7dd .
2019-12-06 22:54:08 -06:00
evazion
2bffad9311
BURs: credit tag edits to DanbooruBot.
...
Credit tag edits that are performed as part of an alias, implication, or
mass update to DanbooruBot instead of the admin who approved the BUR.
2019-12-06 22:54:08 -06:00
evazion
620b81e7b9
Fix #4218 : Can't install because Rails assets manifest is missing.
2019-12-06 02:44:10 -06:00
evazion
2be9c113e2
Fix #4222 : unrecognized configuration parameter "default_table_access_method"
...
This option was introduced in Postgres 12 and isn't backwards compatible
with older Postgres versions.
2019-12-06 02:32:15 -06:00
evazion
669ba6fc8d
upgrades: fix post-upgrade landing page.
...
* Fix the post-upgrade message showing the gift message instead of the
normal upgrade message.
* Link back to Danbooru so people don't stay on Safebooru and get
confused when they can't see hidden posts.
2019-12-06 02:26:11 -06:00
evazion
f355503413
tests: fix recommended posts tests.
2019-12-06 01:33:52 -06:00
evazion
0c483cad15
config: fix references to Danbooru.config.app_name.
...
Danbooru.config.app_name is either Safebooru or Danbooru. Fix some
places where it should always be Danbooru.
2019-12-06 01:33:52 -06:00
evazion
06078ef172
danbooru_default_config.rb: remove unused config params.
2019-12-06 01:33:52 -06:00
evazion
5cdccf4b93
Update gems.
2019-12-06 01:33:52 -06:00
evazion
0a5d8f57d5
ruby: bump ruby version to 2.6.5.
2019-12-05 22:32:45 -06:00
evazion
cb45aa6fe6
Remove unused automod code.
...
The DynamoDB update job was disabled a few months ago. Remove it
completely.
2019-12-03 10:45:18 -06:00
evazion
a559278953
notes: fix scrollbars appearing when using certain fonts.
2019-12-02 21:14:41 -06:00
evazion
5d1a1cc87e
Change github repo url to https://github.com/danbooru/danbooru .
...
The danbooru repo was moved to https://github.com/danbooru .
2019-12-02 17:33:40 -06:00
evazion
008e97a787
capistrano: reduce delayed job worker count (16 -> 12).
2019-12-02 16:57:26 -06:00
evazion
56a2fae26f
Revert "Temp disable account upgrades."
...
This reverts commit c4cdba0874 .
2019-12-02 16:53:06 -06:00
evazion
86a09a322f
cloudflare: use new api token auth scheme.
...
Use Cloudflare's new API token authentication method to talk to
Cloudflare. This lets us use API tokens with minimal privileges set.
https://blog.cloudflare.com/api-tokens-general-availability/
2019-12-02 16:45:32 -06:00
evazion
27a1a90cf3
recommendations: allow filtering recs by tags.
2019-12-02 03:08:01 -06:00
evazion
5791f4e805
recommendations: show favcount beneath recommended posts.
...
* Add favorite count beneath recommended posts. Clicking the favcount
loads more recommended posts like that post.
* Increase number of recommendations shown on post show page.
2019-12-02 03:08:01 -06:00
evazion
efda9f37e1
recommendations: add search form, allow searching by username.
2019-12-02 02:26:21 -06:00