Commit Graph

1233 Commits

Author SHA1 Message Date
r888888888
59cd4d71d3 fixes #3467 2017-12-28 14:56:03 -08:00
Albert Yi
0f7b9c3a21 Merge pull request #3472 from BrokenEagle/fix-status-active-search
Fix status:active so that it doesn't show flagged posts
2017-12-28 13:47:25 -08:00
BrokenEagle
7c9dd80d35 Fix status:active so that it doesn't show flagged posts 2017-12-28 12:17:11 -08:00
Albert Yi
12ce69171a Merge pull request #3465 from evazion/fix-3464
Fix #3464: CurrentUser.ip_addr isn't set for anonymous users.
2017-12-27 12:01:28 -08:00
Albert Yi
7651497b23 Merge pull request #3463 from evazion/fix-nico-seiga-timeout
Fix #3457: Timeout when fetching source data from NicoSeiga.
2017-12-27 12:00:38 -08:00
evazion
ad74d9e75a Fix #3464: CurrentUser.ip_addr isn't set for anonymous users. 2017-12-27 13:34:20 -06:00
evazion
48b67967b5 Fix #3457: Timeout when fetching source data from NicoSeiga. 2017-12-27 13:08:14 -06:00
evazion
e34754c65c Possible fix for #3460: Timeout in update_last_ip_addr.
Set the user's statement timeout as soon as possible, before updating
anything in the database.
2017-12-27 12:42:11 -06:00
Albert Yi
2e0e8e1365 Merge pull request #3456 from BrokenEagle/fix-3455
Fix 3455: Convert tag category Javascript/CSS assets to ERB
2017-12-25 13:22:04 -08:00
Albert Yi
010e70e6c7 Merge pull request #3454 from evazion/fix-3448
Fix #3448: Lower the limit for tag category changes
2017-12-25 13:20:45 -08:00
BrokenEagle
d54b26c61d Convert tag category Javascript/CSS assets to ERB 2017-12-24 17:01:17 -08:00
evazion
19bda2056c tags: update category cache whenever category changes.
Do `update_category_cache_for_all` in a callback instead of calling it
manually everywhere.
2017-12-23 13:07:23 -06:00
evazion
265377bdbb Fix #3450: Aliased tags show up under translated tags.
Resolves aliases in translated tags. For example, say we lookup `遠坂凛`
and find `tohsaka_rin` and `toosaka_rin`. We apply aliases so that
`tohsaka_rin` becomes `toosaka_rin`, which is then returned as the only
translated tag.
2017-12-23 12:27:58 -06:00
evazion
806513836b Fix failbooru in /users/custom_style.css when custom_style is nil.
http://danbooru.donmai.us/users/custom_style.css failed when manually
requested by anonymous users, or by users who didn't have a style set.
2017-12-23 11:11:50 -06:00
r888888888
5177829aff revert twitter source change 2017-12-21 10:58:28 -08:00
Albert Yi
b973e97648 Merge pull request #3434 from BrokenEagle/feat-copyright-other-wikis
Add character list wikis to copyright related tag response
2017-12-19 11:37:46 -08:00
BrokenEagle
118fd3baf4 Added list_of_* wikis to copyright related tag response 2017-12-18 15:36:08 -08:00
Albert Yi
f5cb49d9bf Merge pull request #3433 from BrokenEagle/fix-fav-privacy
Fix incorrect showing of favorites and favorite groups with privacy settings enabled
2017-12-18 14:58:54 -08:00
BrokenEagle
26c168bdcd Fixed incorrect showing of favorites
- Moved all favorite checking logic to same file
2017-12-18 12:17:17 -08:00
evazion
efeaad25ca Move lib/danbooru, lib/danbooru_image_resizer to app/logical. 2017-12-18 12:07:52 -06:00
r888888888
b5d72ae8d8 fixes #3422 2017-12-15 17:21:33 -08:00
r888888888
a95af95eae move desktop mode to user pref 2017-12-15 13:52:25 -08:00
evazion
4c39783d28 Fix #3424: /iqdb_queries.json fails for certain urls.
Fix the HTML page -> image URL download rewrite strategy failing for
https://lohas.nicoseiga.jp/thumb/${id}i URLs.
2017-12-15 10:16:06 -06:00
Albert Yi
5da62eff8d Merge branch 'master' into fix-3278 2017-12-13 14:30:08 -08:00
Albert Yi
850ac353ed Merge pull request #3399 from BrokenEagle/fix-gold-safemode-message
Changed safe mode error message for Gold+ users
2017-12-13 14:26:50 -08:00
evazion
5819afced7 Fix #3412: Mass updates incorrectly move saved searches. 2017-12-06 14:46:12 -06:00
BrokenEagle
839f0f653f Changed safe mode error message for Gold+ users
- Made explicit the error messages and their order
- Banned takes priority, then Gold+, then Safe
- Made the groups exclusive of each other
2017-12-05 19:08:01 -08:00
evazion
45cecff1a6 Move with_timeout / without_timeout to ApplicationRecord. 2017-11-26 13:57:52 -06:00
r888888888
060762defa add service for purging files from cloudflare cache 2017-11-22 13:19:30 -08:00
evazion
0b5ed163fe Fix #3395: fix pixiv API exception when uploading bad pixiv id images.
Fixes an exception when attempting to upload a Pixiv image from a
deleted work. The download strategy tries to fetch the source data in
the course of rewriting the URL, which fails if the work has been
deleted from Pixiv.

Raise a BadIDError and leave the URL as-is (don't rewrite it).
2017-11-21 14:40:39 -06:00
evazion
183a7e07e3 pixiv: fix failbooru when uploading bad pixiv id posts.
Fixes an "incompatible character encodings: UTF-8 and ASCII-8BIT"
exception when uploading a deleted Pixiv post.

Caused by the Pixiv API error message not having the encoding set to UTF-8.
2017-11-21 14:11:59 -06:00
evazion
a14c492020 Fix #3396: Pixiv novel cover IDs are parsed incorrectly. 2017-11-21 13:03:03 -06:00
Albert Yi
051c17953d Merge pull request #3393 from evazion/feat-safe-mode
Fix #3392: Add safe mode account setting.
2017-11-21 10:55:57 -08:00
evazion
f8581c8113 Fix #3321: HTML tags not converted in artist commentaries. 2017-11-21 02:42:49 -06:00
evazion
df7648b581 Fix #3392: Add safe mode account setting. 2017-11-20 18:59:53 -06:00
r888888888
502f1298a9 fix unit tests 2017-11-20 16:30:07 -08:00
r888888888
9d5e4f969f fix source tests 2017-11-20 12:30:29 -08:00
evazion
fa22e419af Fix #3385: Bookmarklet sets wrong source for Tumblr posts
Due to missing || operators, for Pawoo/Tumblr/Artstation uploads the
source wasn't changed from the direct image URL to the html page URL
after upload.
2017-11-18 15:44:16 -06:00
evazion
5837b74de4 tumblr: fix exception when fetching source data.
Fixes an `undefined method `gsub' for nil:NilClass` exception when fetching source
data for this url:

* /uploads/new?url=https%3A%2F%2Fuiti-ukumo.tumblr.com%2Fpost%2F156157443158%2F2016-12

Bug introduced in 3c524aa5: `url` wasn't initialized due to `@url = url`
being removed from Sources::Site#initialize.
2017-11-18 15:44:09 -06:00
evazion
f896c24d37 tumblr: fail more gracefully if API key is not configured. 2017-11-18 13:53:11 -06:00
evazion
22c9cfcec5 Fix #3384: Fetch commentary not creating fully formed textile links 2017-11-18 13:02:50 -06:00
r888888888
3c524aa5e6 fix bug with source::site 2017-11-17 17:26:33 -08:00
r888888888
9a3824a87e fixes #3382 2017-11-17 16:18:59 -08:00
r888888888
e70c2a3085 remove references to tag subscriptions 2017-11-17 13:45:17 -08:00
r888888888
4e9ebbd02e include creator in bulk revert messages 2017-11-16 14:44:57 -08:00
r888888888
3ad332ad3d fix post test 2017-11-16 14:20:32 -08:00
r888888888
73f257ec63 disable manual post count expiration, rely solely on timed expiries (fixes #3376) 2017-11-16 13:43:38 -08:00
Albert Yi
058783755d Merge pull request #3379 from evazion/fix-3377
Fix #3377: Batch bookmarklet doesn't fetch artist/tags from twitter
2017-11-16 12:02:06 -08:00
r888888888
2e0534a66b fixes #3372 2017-11-16 12:00:54 -08:00
evazion
eeb41d2ffd twitter: get status id from referer url if not in direct url. 2017-11-16 13:29:58 -06:00