evazion
18a216c67a
Fix #4130 : Remove tag alias corrections.
2019-08-10 22:46:49 -05:00
evazion
c7bcce429e
Fix #4129 : Remove tag alias caching.
2019-08-10 22:04:55 -05:00
evazion
96b28a77e7
delayed jobs: drop failed jobs email alert.
...
Usually when jobs aren't working it's not because the jobs themselves
are failing, it's because the workers crashed and aren't processing jobs
at all.
2019-08-10 12:06:23 -05:00
evazion
30401f6599
aliases, implications: fix N+1 query in listing pages.
2019-08-09 00:05:50 -05:00
evazion
4f024d2360
pools/show: fix N+1 query on pool show page.
...
Fix a N+1 query when fetching posts to render thumbnails. Also adds
support for the `limit` url param on the posts show page.
2019-08-09 00:05:50 -05:00
evazion
6d171f44c4
pools/show: remove unused related tags calculation.
2019-08-09 00:05:50 -05:00
evazion
48a4f3c26c
application controller: catch more common exceptions.
2019-08-08 22:16:39 -05:00
evazion
df433bda9c
newrelic: log more request context.
2019-08-08 22:16:39 -05:00
evazion
9a6add9730
newrelic: refactor error logging.
...
* Factor out New Relic logging to DanbooruLogger class.
* Log all exceptions to New Relic, not just statement timeouts.
2019-08-08 22:16:39 -05:00
evazion
35dfc704bc
application controller: fix bad file extension errors.
...
Fix requests with bad file extensions not always returning errors correctly:
* https://danbooru.donmai.us/posts.jpg
* https://danbooru.donmai.us/posts.blah
* https://danbooru.donmai.us/posts/bad.jpg
* https://danbooru.donmai.us/posts/bad.blah
2019-08-08 22:16:39 -05:00
evazion
8d706f4fd7
session controller: remove dead session[:previous_uri] cookie.
...
session[:previous_uri] is never set so it's always nil.
2019-08-08 14:00:46 -05:00
evazion
083283906e
application controller: remove unused secure_cookies_check.
2019-08-08 14:00:46 -05:00
evazion
5231371100
posts: drop img.ly source normalization.
...
There are only two posts from this site and the site itself is defunct:
* https://danbooru.donmai.us/posts/1561685
* https://danbooru.donmai.us/posts/1412508
* https://img.ly/ofxl
2019-08-07 22:11:07 -05:00
evazion
c7cd43d30e
Drop unused mrtg view.
2019-08-07 22:11:07 -05:00
evazion
8db9d700ef
daily maintenance: fix 'vacuum analyze' failure during tests.
...
Fixup for 2df6bf41f .
2019-08-06 15:22:08 -05:00
evazion
7f482dc35b
deviantart: normalize wixmp.com sources to page urls.
...
Normalize sources like this:
https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/ab917938-d8c1-4b58-933d-0d38c390461f/ddcyi98-cbd39da2-f528-4b26-aadb-a16fe91442b2.jpg/v1/fill/w_1280,h_1760,q_100,strp/tifa_by_chubymi_ddcyi98-fullview.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9MTc2MCIsInBhdGgiOiJcL2ZcL2FiOTE3OTM4LWQ4YzEtNGI1OC05MzNkLTBkMzhjMzkwNDYxZlwvZGRjeWk5OC1jYmQzOWRhMi1mNTI4LTRiMjYtYWFkYi1hMTZmZTkxNDQyYjIuanBnIiwid2lkdGgiOiI8PTEyODAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.Uochlma4QJmLwL2ZGMmvTr4HMva4m4bCeF3vnyPSw4I
to this:
https://www.deviantart.com/chubymi/art/Tifa-807825644
on the sidebar of the posts show page.
2019-08-06 12:04:05 -05:00
evazion
a8896b664d
twitter: fix batch bookmarklet selecting wrong image.
...
Fix regression in 7e465aeda .
https://danbooru.donmai.us/forum_topics/9127?page=276#forum_post_158779
2019-08-06 10:42:45 -05:00
evazion
0c6d9f60bd
Remove unused mailers.
2019-08-06 10:42:45 -05:00
evazion
2df6bf41f6
cron: move 'vacuum analyze' to daily maintenance.
2019-08-06 10:42:45 -05:00
evazion
06ad1cbbc1
Fix #3685 : Bare layout for error pages.
2019-08-05 11:03:10 -05:00
evazion
3b7ab86750
Fix "You are now logged in.." flash message.
...
The flash message when logging in contained an extra period.
2019-08-05 11:02:40 -05:00
evazion
7e465aedae
Fix #4110 : New Twitter image urls are broken in bookmarklet.
2019-08-04 20:23:10 -05:00
evazion
f77d305f83
Fix #3250 : Show unvote link as applicable upon page load.
2019-08-04 18:58:25 -05:00
evazion
9ecf36585c
nijie: update for new image urls.
...
Nijie moved from this:
https://pic03.nijie.info/nijie_picture/236014_20170620101426_0.png (page: https://www.nijie.info/view.php?id=218856 )
to this:
https://pic.nijie.net/03/nijie_picture/236014_20170620101426_0.png (page: https://www.nijie.info/view.php?id=218856 )
2019-08-04 17:49:54 -05:00
evazion
9163b3cb1c
validations: drop superfluous return statements.
...
Returning true or false in a validation callback doesn't do anything, so
drop these superfluous return statements.
2019-08-04 15:45:05 -05:00
evazion
a926b162be
models: drop unnecessary presence validations.
...
In rails 5, belongs_to associations automatically validate that the
associated item is present, meaning that we don't need to validate these
things manually any more.
2019-08-04 14:40:37 -05:00
evazion
fc4fa9dc6c
Fix #4077 : Migrate CurrentUser and safe_mode to use RequestStore.
2019-08-04 10:12:59 -05:00
evazion
98d80a0cca
Fix #4116 : "Couldn't find template for digesting" errors.
...
Specify full path to shared partial to work around bug in the template
digesting system in Rails.
2019-08-03 17:40:45 -05:00
evazion
39bd766b34
Fix #4053 : Add disapproval index improvements.
...
Add search form to /moderator/post/disapprovals.
2019-08-02 22:03:03 -05:00
evazion
6c69165780
Fix #4105 : IP bans leak banned IPs in /mod_actions.
2019-08-01 21:21:18 -05:00
evazion
065609ff4f
artists: prevent creating artist entries for non-artist tags ( #4107 , 2717).
...
Validate that artist entries belong to an artist tag. Don't allow
creating artist entries for character/copyright/meta tags, but do allow
entries for general tags (the gentag will be automatically changed to an
artist tag).
2019-08-01 20:20:06 -05:00
evazion
bcaefa0a7e
Fix #4107 : Can't create artist entry if tag already has a wiki #4107
2019-08-01 19:34:21 -05:00
evazion
692981e964
Fix #4111 : Cache custom CSS.
2019-08-01 00:06:18 -05:00
evazion
efc5487dd6
Fix #4109 : Censored images leaked in og:image attribute.
2019-07-31 21:47:31 -05:00
Nicolas Stepien
2d25519e18
Add video support to resize_image_to_window
...
This should make videos automatically scale on the mobile view.
2019-07-25 23:20:14 +01:00
Albert Yi
5e5e86c383
limit number of synchronous saved search updates
2019-07-02 17:16:33 -07:00
Albert Yi
318bee9953
make saved search populate synchronous for gold users
2019-07-02 12:30:42 -07:00
Albert Yi
b3b2e4a8ab
show previous user name changes to mods only
2019-06-26 09:27:07 -07:00
Albert Yi
f95bcc7330
move safe_mode from Thread.current to RequestStore
2019-06-26 09:26:20 -07:00
Albert Yi
21ba1000f1
fixes #4079 : Allow deleted forum items to be seen with the is_deleted parameter
2019-05-17 13:11:24 -07:00
Albert Yi
0a058dd52b
fixes #4080 : Status code 500 when disapproving through API
2019-05-17 12:09:03 -07:00
Albert Yi
04edc3f533
update factories + tests
2019-05-10 17:31:07 -07:00
Albert Yi
6612aa1af9
fix unit tests
2019-04-25 18:13:59 -07:00
Albert Yi
06045ac0d1
fix bug with only param
2019-04-18 13:28:14 -07:00
Albert Yi
0daa8184d4
handle include param for as_json and to_xml
2019-04-18 12:54:36 -07:00
Albert Yi
a12f6badde
add RequestStore gem, support universal only param for api endpoints ( fixes #4068 )
2019-04-17 12:00:42 -07:00
Albert Yi
8a16e089d2
don't try to parse deviant art urls that lack a deviation id in the url
2019-04-16 14:00:38 -07:00
Albert Yi
6f4ca75bb1
try to handle deivantart images hosted on images-wixmp better
2019-04-16 13:55:26 -07:00
Albert Yi
eb8ce2e955
Revert "eliminate old algorithm for deviant art sources, fix canonical_url on deviantart"
...
This reverts commit 58ca52b43e .
2019-04-16 13:22:09 -07:00
Albert Yi
d69a4968fd
Merge pull request #4073 from BrokenEagle/fix-4057
...
Remove references to Keeper/TopTagger
2019-04-12 17:03:48 -07:00