r888888888
449385f08f
fixes #3313
2017-10-09 12:17:15 -07:00
r888888888
014b9af5f8
fetch ugoiras for batch action #3317
2017-10-03 13:36:56 -07:00
r888888888
9ffbae3cc0
expose resize image to window functionality to anon users
2017-09-29 18:11:22 -07:00
r888888888
7722cabe7c
fixes #3288
2017-09-14 11:05:06 -07:00
r888888888
c2b49bf2b7
fixes #3293
2017-09-13 11:14:35 -07:00
r888888888
4fb55657c0
refactor cropped images into explore/posts/intro
2017-09-12 13:03:59 -07:00
r888888888
ff6a64f0fc
notify cropper service on upload
2017-09-08 17:11:51 -07:00
r888888888
68863ed018
fixes #3287
2017-09-08 15:01:12 -07:00
r888888888
63f7edd0c6
add toggle for testing cropped thumbnails
2017-09-06 17:02:43 -07:00
lllusion3469
4c3733ce5a
Keep auth_secure cookie from deviantart
...
Unlike this projects, all other DA scrapers I found[0] require that both
"auth" and "auth_secure" are set.
While the current approach, for some reason, seems to have worked fine in
the past, it has stopped functioning on some systems, sometimes
permanently (apparently sometimes only temporarily).
I don't have the means to find out the reason behind that, since all
configurations I've tried (mobile, VPN, and regular connection +
4 seperate accounts) resulted in me being effectively logged out and
unable to view mature works after deleting the "auth_secure" cookie.
The "if auth_cookie" part might not actually be necessary, its only
purpose is to prevent unintended breakage due to lack of information
on my part.
[0]: b662b46a44 (diff-aab4e263d591d1c7f23d015a2e540a32R161)
cbaecf5507 (diff-9f9821e7d744874a2fe42e0a69e4b14aR33)
2017-08-30 20:47:59 +02:00
r888888888
bc69badadd
better error handling of failed deviant art logins
2017-08-28 16:19:41 -07:00
r888888888
b769b83262
use Cache.hash instead of Cache.sanitize
2017-08-24 15:43:38 -07:00
r888888888
d124ff8128
fix case when fetching pixiv sources when illust_id param comes before mode
2017-08-23 17:50:33 -07:00
evazion
9b031a9c20
Fix #3266 : Normalize fullwidth Unicode characters in translated tags.
2017-08-12 17:13:52 -05:00
Albert Yi
87b0dc3ae3
Merge pull request #3252 from evazion/fix-2736
...
Fix #2736 : Comment mention dmail didn't go through
2017-08-07 16:05:05 -07:00
Albert Yi
521927ae35
Merge pull request #3255 from evazion/fix-3254
...
Fix #3254 , #3072 : Some Twitter URLs upload wrong image.
2017-08-07 16:03:20 -07:00
evazion
c270954991
Fix #3258 : Fetch source data broken for https://i.pximg.net/ * ugoiras.
2017-08-06 17:23:29 -05:00
evazion
2b9393a624
twitter: remove unused TwitterApi class ( #3206 ).
2017-08-05 23:12:55 -05:00
evazion
8b70e0099b
twitter: fix to handle extended tweets ( fix #3254 , #3072 ).
2017-08-05 23:12:55 -05:00
evazion
69d4712708
mentions: process mentions added in an edit ( fix #2736 )
2017-08-04 23:48:53 -05:00
evazion
4c54e18c6d
mentions: factor out mention parsing to DText.parse_mentions.
2017-08-04 23:48:31 -05:00
evazion
7b96d9dcd4
Fix 'Deleted post filter' option applying to status:{any,all} ( #3245 ).
...
https://danbooru.donmai.us/forum_topics/9127?page=196#forum_post_134342
2017-08-04 17:15:39 -05:00
Albert Yi
e4bc01533b
Merge pull request #3245 from evazion/fix-2344
...
Fix #2344 : Negating status metatag breaks deleted post filter.
2017-07-31 12:50:21 -07:00
Albert Yi
fe6ae4b3d1
Merge pull request #3233 from evazion/feat-order-metatags
...
Add order:{tagcount,gentags,arttags,chartags,copytags} metatags.
2017-07-31 11:56:06 -07:00
evazion
1c38fbbf64
Fix #2344 : Negating status metatag breaks deleted post filter.
2017-07-28 19:52:35 -05:00
Albert Yi
b4cba9c8d9
Merge pull request #3238 from evazion/fix-1156
...
Fix #1156 : Allow sequential search navigator to work without a search.
2017-07-26 17:08:29 -07:00
Albert Yi
36a17d79f9
Merge pull request #3242 from evazion/fix-drop-whitecube
...
Drop Pixiv whitecube support (#2681 , #3206 ).
2017-07-26 17:07:27 -07:00
evazion
80e8c9d174
strategies/pixiv.rb: removed unused methods ( #3206 ).
...
The page count and the moniker are now obtained from the API.
2017-07-26 18:17:04 -05:00
evazion
7ae860a8b8
Drop Pixiv whitecube support ( #2681 , #3206 ).
2017-07-26 18:06:46 -05:00
evazion
0129891213
Fix #1156 : Allow sequential search navigator to work without a search.
2017-07-24 19:30:30 -05:00
evazion
96fddc5bec
Fix #3234 : Incorrect filesize on upload page.
2017-07-22 00:34:30 -05:00
evazion
fffc107d4f
Add order:{tagcount,gentags,arttags,chartags,copytags} metatags.
2017-07-21 23:11:02 -05:00
r888888888
c80291c072
fix twitter:error:forbidden catch block
2017-07-21 18:12:46 -07:00
Albert Yi
9b982b3379
Merge pull request #3228 from r888888888/ccs
...
integrate with ccs
2017-07-21 18:00:05 -07:00
Albert Yi
5673efe131
Merge pull request #3227 from evazion/fix-3225
...
Fix #3225 : Exception in NoteSanitizer#relativize_links.
2017-07-20 15:44:15 -07:00
Albert Yi
2e09d5f1e7
Merge pull request #3226 from evazion/fix-3224
...
Fix #3224 : 403 Forbidden when logging in to DeviantArt.
2017-07-20 15:37:26 -07:00
r888888888
c5a40628e6
integrate with ccs
2017-07-20 15:25:19 -07:00
evazion
1fe6a5fc65
Fix #3225 : Exception in NoteSanitizer#relativize_links.
2017-07-19 21:13:04 -05:00
evazion
93d44c6b84
Fix #3224 : 403 Forbidden when logging in to DeviantArt.
...
Login fails if the User-Agent isn't set while POST'ing the login
credentials.
2017-07-19 20:25:27 -05:00
evazion
8125d8e796
Set the default User-Agent sent for outgoing http requests.
...
* Add a `Danbooru.config.http_headers` config option.
* Refactor various places to use this option instead of setting the user
agent manually.
2017-07-19 20:25:27 -05:00
evazion
7cb7c2fbab
Remove ruby DText implementation ( #3206 ).
2017-07-19 16:48:42 -05:00
r888888888
d48ed95191
favoritescontroller#destroy should work even if the post doesn't exist, remove from favorites on expunge ( fixes #3222 )
2017-07-19 13:39:24 -07:00
r888888888
ee6581ab7f
restore streaming behavior for Downloads::File#http_get_streaming
2017-07-13 15:31:29 -07:00
evazion
79b21bbca8
Fix failure in Pixiv API call ( #3135 ).
...
Forgot to send authentication headers with API call.
2017-07-13 15:58:17 -05:00
evazion
5066f75d8c
Fix Net::HTTPOK#read_body called twice error during upload ( #3135 )
...
Fixes this exception:
An error occurred: error: IOError - Net::HTTPOK#read_body called twice
/home/admin/.rbenv/versions/2.3.4/lib/ruby/2.3.0/net/http/response.rb:196:in `read_body'
/home/admin/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/httparty-0.15.5/lib/httparty/response.rb:91:in `method_missing'
/home/admin/src/danbooru/app/logical/downloads/file.rb:43:in `block (2 levels) in download!'
/home/admin/src/danbooru/app/logical/downloads/file.rb:41:in `open'
/home/admin/src/danbooru/app/logical/downloads/file.rb:41:in `block in download!'
/home/admin/src/danbooru/app/logical/downloads/file.rb:100:in `http_get_streaming'
/home/admin/src/danbooru/app/logical/downloads/file.rb:39:in `download!'
/home/admin/src/danbooru/app/models/upload.rb:408:in `download_from_source'
/home/admin/src/danbooru/app/models/upload.rb:113:in `block in process_upload'
2017-07-13 15:41:36 -05:00
r888888888
023c488bd5
fixes #3199
2017-07-12 16:47:28 -07:00
r888888888
97ce9cafac
add httparty option config
2017-07-12 15:52:48 -07:00
r888888888
eb6c5e3af5
switch to httparty
2017-07-12 15:52:48 -07:00
evazion
cc8986641b
Fix #3208 : Fix translated tag suggestions for Pixiv.
...
* Only suggest the Danbooru tag with the same name if there is no
matching wiki other name. Example: if we have the Pixiv tag `Fate` and
the Danbooru tag `fate_(series)` with other name `fate`, suggest that,
not the Danbooru tag `fate`.
* Don't suggest tags that are empty or whose wiki is deleted.
* Only split tags on "/" if there are no other matches, and only for Pixiv.
* For Pixiv, only include traditional media tags in tag list, not digital media (Photoshop, SAI).
* Add some tests.
2017-07-09 12:10:30 -05:00
evazion
df33901938
PostQueryBuilder: remove unused has_constraints attr ( #3206 ).
...
This was previously used to prevent searches that contained only negated
tags. No longer used.
2017-07-07 16:08:02 -05:00