evazion
853ddc7cda
tag.rb: validate tag names.
...
Makes these tag names invalid when tagging posts:
* Blank names (e.g. ___).
* Non-ASCII characters (Japanese text).
* Non-printable characters (e.g. control characters < 0x20).
* Leading or trailing underscores, or consecutive underscores. Reason:
`_foo__bar_` and `foo_bar` both render as `foo bar` in the tag list.
* Leading `-` or `~`, or '*' (-foo, ~foo, foo*bar). Previously
these were silently stripped, but that meant tagging a post with e.g.
`*-foo` tagged the post with the invalid tag `-foo`.
* Tag type prefixes (e.g. `character:character:hatsune_miku` no longer creates
the literal tag `character:hatsune_miku`).
* Metatags (order:score, user:evazion, etc).
2017-02-08 23:30:23 -06:00
Albert Yi
1c837aba6e
Merge pull request #2879 from evazion/fix-dead-code
...
Eliminate dead code
2017-02-07 13:56:05 -08:00
Albert Yi
b1c33f2379
Merge pull request #2878 from evazion/fix-test-coverage
...
Improve controller test coverage
2017-02-07 13:45:16 -08:00
r888888888
7a3d1c7d1d
dont download original artstation images if they dont exist
2017-02-07 13:40:19 -08:00
r888888888
9996030496
include default referer url for art station strategy
2017-02-06 17:37:45 -08:00
r888888888
39b6601afe
Merge branch 'artstation'
2017-02-06 17:07:57 -08:00
r888888888
7a2f652152
add source strategy for artstation
2017-02-06 17:07:09 -08:00
evazion
951e6d4b5f
Remove unused arbitrary_sql_order_clause.
...
Unused since f87c71c .
2017-02-06 19:07:04 -06:00
evazion
d74503ae05
tests: add misc controller tests.
2017-02-06 18:48:35 -06:00
r888888888
2e69cd619e
resize medium + small artstation urls also
2017-02-06 15:22:06 -08:00
r888888888
5c16e9ce48
add download strategy for artstation
2017-02-06 12:03:00 -08:00
r888888888
6bf050c607
add download strategy for artstation
2017-02-06 11:59:27 -08:00
evazion
98b0b2c5d8
tests: fix Net::HTTP::Persistent::Error: too many connection resets.
...
Works around connection reset errors in the test suite by disabling
persistent connections.
20) Error:
Sources::PixivTest#test_: in all cases fetching source data for a new manga image should get the tags. :
Net::HTTP::Persistent::Error: too many connection resets (due to closed stream - IOError) after 0 requests on 47071328584700, last used 1.842702476 seconds ago
app/logical/pixiv_web_agent.rb:46:in `build'
app/logical/sources/strategies/pixiv.rb:104:in `agent'
app/logical/sources/strategies/pixiv.rb:72:in `get'
app/logical/sources/site.rb:6:in `get'
test/unit/sources/pixiv_test.rb:7:in `get_source'
test/unit/sources/pixiv_test.rb:64:in `block (3 levels) in <class:PixivTest>'
ref: github.com/sparklemotion/mechanize/issues/123
ref: http://www.rubydoc.info/gems/mechanize/Mechanize#retry_change_requests%3D-instance_method
2017-02-04 17:07:00 -06:00
r888888888
3965903210
fixes #2875 : Encoding::CompatibilityError on /explore/posts/searches
2017-02-03 14:44:13 -08:00
evazion
558e4e5443
Add filetype: metatag.
2017-02-02 00:53:56 -06:00
Type-kun
8848fa2e2f
Fixes #2861
2017-01-27 20:08:43 +05:00
Albert Yi
6430a9b0a4
Merge pull request #2855 from evazion/feat-comment-metatags
...
Add order:comment_bumped, order:comment_bumped_asc metatags.
2017-01-23 11:22:17 -08:00
r888888888
c7b5a4e229
add references to user statistics page about saved searches
2017-01-23 10:56:39 -08:00
evazion
601b439f96
Add order:comment_bumped, order:comment_bumped_asc metatags.
2017-01-21 11:10:40 +00:00
r888888888
48e66cddbb
fixes #2849 : IP address search is broken
2017-01-20 15:37:26 -08:00
r888888888
bfa56a860c
fixes #2415 : "Random post" causes RecordNotFound exceptions
2017-01-18 14:12:12 -08:00
Albert Yi
268b7b99ad
fix nil error
2017-01-16 15:41:46 -08:00
Albert Yi
6b5b92e02e
Merge pull request #2840 from evazion/fix-pixiv-dupe-orig
...
Fix #2839 : "Original" tag shows up twice in Pixiv source data
2017-01-16 11:35:52 -08:00
Type-kun
15b711e423
Fixes #2694 : hide "revert all" when user has over 1000 post changes
2017-01-16 18:43:36 +05:00
evazion
5f4535c408
Fix #2839 : "Original" tag shows up twice in Pixiv source data
2017-01-14 21:14:06 +00:00
evazion
cf046eecbf
Fix ip addr search tests.
2017-01-12 09:28:52 +00:00
evazion
26c193dfb3
Change post_appeals.creator_ip_addr from integer to inet.
...
The existing values are garbage, rails stored e.g. "87.126.98.245" as
"87.126.98.245".to_i => 87. The column is nulled to indicate these IPs
are unknown.
2017-01-12 09:28:21 +00:00
evazion
e8f71739be
IpAddrSearch: search flags/appeals/artcomms/artists for IPs.
2017-01-12 09:28:21 +00:00
evazion
4848f18455
IpAddrSearch: fix pool_versions exception.
...
Fix pool_versions exception if PoolArchive db isn't set up. Prefer
ActiveRecord over raw sql so we can get real user objects so that the
view can use link_to_user.
2017-01-12 09:28:21 +00:00
evazion
fde7829bf6
IpAddrSearch: simplify search_by_user_name, remove unused @errors.
2017-01-12 09:15:15 +00:00
Albert Yi
0ab45ebc42
add postarchive model, fixes #2831 : Replace Subscriptions Link With Search:All Link
2017-01-11 11:39:14 -08:00
Albert Yi
63c218d71d
fixes #2825 : Restore search within pool versions IP in mod tools
2017-01-09 18:12:54 -08:00
Albert Yi
1724f89742
Merge pull request #2826 from r888888888/related-tags-html
...
Related tags html page (fixes #2750 )
2017-01-09 18:11:22 -08:00
Albert Yi
f2a5d45db0
implement token bucket rate limiting
2017-01-09 17:31:14 -08:00
Type-kun
7c98c60129
Simple HTML page and form for related tags
2017-01-09 19:18:18 +05:00
Albert Yi
284008e078
eliminate antivoter concept
2017-01-03 17:11:00 -08:00
Albert Yi
b9a1e115fb
add additional mod actions
2017-01-03 16:02:36 -08:00
Albert Yi
4d698bf98b
add modaction helper
2017-01-03 15:04:47 -08:00
Type-kun
3d2b81d1e8
Commented out references to pool_versions table
2017-01-02 11:44:06 +05:00
Albert Yi
b2296cab70
bug fix for saved search update on tag batch changes
2016-12-28 12:40:00 -08:00
Albert Yi
3ad639521f
fixes #2805 : Improve nico seiga support
2016-12-27 16:11:22 -08:00
evazion
be379cc4a2
Return artist commentary in /sources.json?url=<url>.
2016-12-27 06:01:23 +00:00
Albert Yi
5a1ac41450
eliminate transaction log items table
2016-12-21 15:00:59 -08:00
Albert Yi
62956be384
hide saved search functionality if not enabled
2016-12-21 14:53:39 -08:00
Albert Yi
deb62e0cdb
smarter updates on saved searches on tag batch changes #2674
2016-12-05 17:22:07 -08:00
Albert Yi
eddf2e59f0
change formatting for modactions on alias/implication update + add mod action for tag batch changes
2016-12-05 14:46:02 -08:00
Albert Yi
b0f2b1e8dd
Merge pull request #2782 from evazion/fix-2779
...
Fix #2779 : Erroneous pixiv_id parsed for novel/background/profile images
2016-12-05 11:44:38 -08:00
Albert Yi
bd9939a50b
some additional documentation about rewrite strategies
2016-12-05 11:43:18 -08:00
evazion
838d6f6eea
Fix #2460 : Uploading pixiv user's background image throws error.
...
Fix exception when uploading these types of URLs:
* http://img12.pixiv.net/profile/rapattu/119950.jpg
* http://i2.pixiv.net/img130/profile/minono_aki/8733472.jpg
* http://i2.pixiv.net/img20/img/a-park/novel/3607898.jpg
* http://i1.pixiv.net/novel-cover-original/img/2016/11/03/20/10/58/7436075_f75af69f3eacd1656d3733c72aa959cf.jpg
* http://i1.pixiv.net/background/img/2016/05/17/12/05/48/2074388_d4ac52034f7ca0af3e083d59fde7e97f.jpg
Skip rewriting sources that don't have illust IDs to avoid this
exception. Also fix `tags` so that it doesn't blow up when fetching
source data for these types of sources.
2016-12-04 02:04:44 -06:00
evazion
5302b804f1
Fix #2779 : Erroneous pixiv_id parsed for novel/background/profile images
2016-12-04 02:04:44 -06:00