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
Albert Yi
5d40f5ad66
Merge pull request #3198 from evazion/feat-tumblr-dtextify-artcomm
...
Tumblr: convert artist commentaries from HTML to DText (#3184 )
2017-07-05 11:31:30 -07:00
evazion
c3ac4f3329
Fix #3197 - Post Replacement comment: use Replacement URL instead of Final Source
...
Record the URL of the image that was actually downloaded as the replacement URL.
2017-07-02 21:00:26 -05:00
evazion
0390039621
Fix expunging posts from S3 (fixup 4c4ef5c / #3180 ).
2017-07-01 12:30:59 -05:00
evazion
71f84b10af
tumblr: convert commentary to dtext.
...
* Convert Tumblr commentary to DText.
* Strip extraneous whitespace in links and blockquotes.
* Add newlines after block elements to ensure they're separated from
subsequent blocks.
2017-07-01 11:15:48 -05:00
evazion
b880b07387
sources: factor out html-to-dtext code to DText.from_html.
2017-07-01 11:15:48 -05:00
r888888888
361e98edee
fix for flagger_id_neg search case where nothing is matched
2017-06-29 13:03:36 -07:00
r888888888
4c4ef5cc5b
fixes #3180
2017-06-27 15:12:12 -07:00
r888888888
610e2bdedd
fixes #3191
2017-06-27 14:48:55 -07:00
evazion
030052bf14
tumblr: rewrite html pages to image url.
2017-06-25 15:34:15 -05:00
evazion
118843b26a
tumblr: fetch tags, commentary, and image urls.
2017-06-25 15:34:15 -05:00
evazion
d5ce6c98ef
tumblr: add tumblr api client.
2017-06-25 15:34:15 -05:00
evazion
421bbc35a2
tumblr: rewrite samples to biggest available version.
2017-06-21 22:30:53 -05:00
evazion
a9b3d28215
tumblr: fix edgecastcdn.net rewrite + add test.
...
https://data.tumblr.com doesn't have a valid SSL cert, so we must use
http:// instead when we rewrite to it.
2017-06-21 21:10:07 -05:00
evazion
294358b4a6
nijie: fetch image_urls for batch bookmarklet.
2017-06-20 16:29:31 -05:00
evazion
2d5fc191dd
nijie: convert commentary to dtext.
2017-06-20 16:11:16 -05:00
evazion
25e7db860a
nijie: fetch artist commentary.
2017-06-20 16:11:16 -05:00
evazion
655e53fe65
pawoo: rewrite /small/ images to /original/
2017-06-19 17:10:02 -05:00
evazion
14196f36d8
pawoo: convert commentary to dtext.
2017-06-19 17:10:02 -05:00
evazion
6edb5a807b
pawoo: fetch tags and commentary.
2017-06-19 17:10:02 -05:00
evazion
1bfc0a7d8a
pawoo: get status id from normalized url.
2017-06-19 17:09:57 -05:00
evazion
e91942dff3
pawoo: add source tests and docs.
2017-06-19 17:09:57 -05:00
evazion
77c78430db
pawoo_api_client.rb: convert tabs to spaces.
2017-06-19 17:08:52 -05:00
Albert Yi
584b01457b
Merge pull request #3172 from evazion/fix-twitter-tags
...
Fix #3171 : Translate Twitter Hashtags to assist with tagging
2017-06-19 13:24:13 -07:00
Albert Yi
361ba4e9ea
Merge pull request #3170 from evazion/fix-note-normalize-links
...
Convert absolute links in notes to relative links (fix #1911 )
2017-06-19 13:23:39 -07:00
Albert Yi
586a3186fd
Merge pull request #3167 from evazion/feat-dtextify-pixiv-artcomm
...
Convert Pixiv commentaries to DText (fix #2458 )
2017-06-19 13:22:31 -07:00
Type-kun
faa2d99160
Fix #3174
2017-06-19 18:22:58 +05:00
evazion
128e655aef
twitter: fetch hashtags for translated tags ( fixes #3171 ).
2017-06-17 16:15:23 -05:00
evazion
8c7c2a06e5
notes: convert internal links to Danbooru to relative urls.
2017-06-17 11:57:32 -05:00
evazion
94e48aa6f3
pixiv: convert commentary to dtext.
...
Convert pixiv links to dtext in this manner:
* https://www.pixiv.net/member_illust.php?mode=medium&illust_id=1234
=> pixiv #1234 "»":[/posts?tags=pixiv:1234]
* https://www.pixiv.net/member.php?id=1234
=> "user/1234":[https://www.pixiv.net/member.php?id=1234 ] "»":[/artists?search[url_matches]=https://www.pixiv.net/member.php?id=1234 ]
2017-06-16 18:42:37 -05:00
evazion
c638ff2e9c
pixiv: fix nil commentary fields to empty string.
2017-06-16 18:42:37 -05:00
Albert Yi
8b8b4fde71
Merge pull request #3160 from evazion/feat-note-sanitization
...
Improve note sanitization
2017-06-16 12:48:46 -07:00
evazion
5dd3151d5b
twitter: convert commentary to dtext.
...
* Convert hashtags and mentions to dtext links.
* Replace http://t.co urls to the actual url.
* Strip the http://t.co url linking to the tweet itself.
2017-06-16 12:56:55 -05:00
evazion
9909ff20cd
twitter: memoize api response.
2017-06-16 12:56:55 -05:00
evazion
91ed793120
notes: mark links as nofollow.
2017-06-15 22:58:22 -05:00
evazion
845b278b1e
notes: make allowed css properties explicit.
2017-06-15 22:58:22 -05:00
evazion
9570bf026c
notes: allow <rtc>, <sub>, <sup>, <hr>, <wbr> tags.
2017-06-15 22:58:22 -05:00
evazion
869ccad6ba
notes: allow all elements to have style/title attributes.
2017-06-15 22:58:14 -05:00
evazion
990f173b3d
notes: move sanitization from d_text.rb to note_sanitizer.rb.
2017-06-15 22:58:13 -05:00
Type-kun
bf6add5273
Add more support for negated existing metatags
2017-06-15 18:11:53 +05:00
r888888888
f27d065e1f
fixes #3119
2017-06-14 16:30:19 -07:00
r888888888
6174d0eef2
normalize nijie popup urls ( fixes #3153 )
2017-06-14 12:26:13 -07:00
Albert Yi
f780b32012
Merge pull request #3145 from r888888888/flagger_metatag
...
Add "flagger:" and "appealer:" metatags (fixes #3142 )
2017-06-14 11:02:08 -07:00