evazion
eade33fa7c
Fix #3981 : Inconsistency between posts and pools.
2018-11-10 12:37:08 -06:00
evazion
115ed16a96
pools: store post_ids as array instead of string ( fix #3979 )
2018-11-08 15:09:31 -06:00
evazion
1281481548
Fix #3978 : Pool name/category validations not being enforced.
2018-11-07 16:10:16 -06:00
evazion
ed47db0e48
upload tags report: add controller test ( #3975 ).
2018-11-06 18:29:27 -06:00
evazion
98cffc310b
Fix pool elements controller tests.
2018-11-04 21:25:25 -06:00
evazion
29b6121a07
pools: refactor #neighbors + fix broken #neighbors tests.
2018-11-04 19:40:57 -06:00
evazion
5cf6a43918
sources: fix sources sometimes choosing wrong strategy ( fix #3968 )
...
Fix sources choosing the wrong strategy when the referer belongs to a
different site (for example, when uploading a twitter post with a pixiv
referer).
* Fix `match?` to only consider the main url, not the referer.
* Change `match?` to match against a list of domains given by the `domains` method.
* Change `match?` to an instance method.
2018-11-04 13:00:17 -06:00
evazion
f5012464ab
Fix #3965 : Extraneous API attributes.
...
Remove the updater_id/updater_ip_addr virtual attributes from
pools/notes. Juss pass them in as params to create_version instead.
2018-10-30 15:41:17 -05:00
Albert Yi
5a13d06501
rescue failed network calls on artist test
2018-10-25 13:47:16 -07:00
Albert Yi
e5f76b98ff
switch upload service test to use raikou1 image
2018-10-25 12:57:54 -07:00
Albert Yi
19a84993ca
fix video upload spec
2018-10-25 11:44:54 -07:00
Albert Yi
65a3e53667
eliminate extraneous assertion
2018-10-25 11:03:59 -07:00
Albert Yi
7d0b32d489
fix reltagquery test
2018-10-25 11:02:07 -07:00
Albert Yi
120a3d6402
fix post test
2018-10-24 17:35:01 -07:00
Albert Yi
9899199f33
eliminate weeklymaintenance file
2018-10-23 17:50:28 -07:00
Albert Yi
12b88f7f97
fixes #3960
2018-10-17 15:37:47 -07:00
evazion
6148cb39a2
Fix nested blank search params not being stripped from searches.
...
From https://danbooru.donmai.us/forum_topics/9127?page=258#forum_post_151308 :
When you do a user search (from https://danbooru.donmai.us/users/search )
the results only include those with someone in the inviter field.
The bug was that nested blank search params (/users?search[inviter][name_matches]=)
didn't get stripped from the search.
2018-10-17 16:11:44 -05:00
Albert Yi
2aabaf56d8
Merge pull request #3951 from evazion/fix-maintenance-logging
...
Improve daily maintenance error handling
2018-10-15 14:20:44 -07:00
evazion
e329764276
Fix #3952 : Adding animated_gif tag to a ugoira post breaks the player.
2018-10-10 23:50:36 -05:00
evazion
5201954413
maintenance: consolidate maintenance tasks in logical/maintenance.rb.
2018-10-09 20:11:23 -05:00
evazion
53a51310a3
tumblr: add canonical url tests ( #3385 ).
2018-10-09 12:55:48 -05:00
evazion
16b1b72da5
tumblr: fix video urls not being recognized.
2018-10-09 12:44:59 -05:00
evazion
184a5ebf3e
tumblr: fix _640 images not being recognized ( #3944 ).
...
Fixes _640 images not being matched by the IMAGE regex and therefore not
being rewritten to the largest size.
2018-10-09 12:44:59 -05:00
evazion
d874c68419
tumblr: fix image_urls when api data is unavailable.
2018-10-09 12:44:59 -05:00
evazion
b0d7d90103
tumblr: extract info from url when api data is unavailable.
...
Derive the artist name / profile url / page url from the source URLs when
the API response is unavailable because the Tumblr post was deleted.
This fixes the artist finder to work on bad_tumblr_id posts.
2018-10-09 12:44:59 -05:00
evazion
0c31a5d6a9
tumblr: don't fail when api data is unavailable ( #3948 ).
...
The api data is unavailable when the work is deleted (bad_tumblr_id), or
when the source is a direct image url with no page referer.
2018-10-09 12:44:59 -05:00
evazion
4c55c809b0
tumblr: don't fail when api key isn't configured.
2018-10-09 12:44:59 -05:00
evazion
c8d538f618
moebooru: delegate to substrategy based on post source ( #3911 ).
...
If the yande.re or konachan.com post has a source from a supported site,
for example Pixiv or Twitter, then delegate the artist and commentary
lookup to that substrategy.
Only do this for sources from recognized sites, not the null strategy.
2018-10-06 14:27:49 -05:00
evazion
e5a4193dd4
moebooru: support batch bookmarklet previews ( #3911 ).
2018-10-06 00:58:22 -05:00
evazion
fdb6e4ecee
moebooru: rewrite konachan urls for Post#normalized_source ( #3911 ).
2018-10-06 00:58:22 -05:00
evazion
864349dc7b
moebooru: fetch tags ( #3911 ).
2018-10-06 00:58:22 -05:00
evazion
9301bf2f11
tests: fix post expungement test.
...
Delay jobs so the uploaded file isn't deleted immediately (see f6c928e660 ).
2018-10-06 00:58:22 -05:00
evazion
1e710e1ae0
tests: fix typo in artist controller test.
2018-10-04 21:55:17 -05:00
evazion
f6c928e660
tests: fix upload service tests.
...
Fix regression in a45bd52e9. Delay jobs so that that the dead upload
pruner doesn't immediately prune new uploads.
2018-10-04 21:52:18 -05:00
evazion
bb5f291112
artists: don't create new version when nothing changed.
...
Fix an issue where saving an artist entry without changing anything
would create a new artist version.
2018-10-04 20:01:38 -05:00
evazion
03cc3dfa50
artists: fix editing invalid urls in artist entries ( fix #3720 , #3927 , #3781 )
...
Convert to an autosave association on urls. This ensures that when we
save the artist we only validate the added urls, not bad urls that we're
trying to remove, and that url validation errors are propagated up to
the artist object.
This also fixes invalid urls being saved in the artist history despite
validation failing (#3720 ).
2018-10-04 19:49:16 -05:00
evazion
bd3fb7d70e
Post#normalized_source: fix for yande.re urls.
...
Fix regex for yande.re urls like this:
https://files.yande.re/image/b66909b940e8d77accab7c9b25aa4dc3/yande.re%20377828.png
2018-10-01 20:03:21 -05:00
evazion
0c5452cdc3
Fix #3937 : Blank lines in tagbox if certain taggroups are absent
2018-10-01 19:47:39 -05:00
evazion
215591403e
uploads: fix 'rating:safe' not assigning the rating ( #3929 ).
2018-10-01 11:09:00 -05:00
evazion
2ae7ec42df
Post#fast_count: raise min cache lifetime to 3 minutes ( #3925 ).
2018-10-01 10:38:15 -05:00
evazion
4425150298
Post#fast_count: fix cache expiry not being set ( #3925 ).
2018-10-01 10:38:15 -05:00
evazion
151fa00933
tests: fix tests for /comments/new, /post_flags/new.
2018-10-01 10:38:15 -05:00
evazion
2cc4e35cc9
Fix #3930 : Can't remove children from a parent post through child: metatag.
...
Add `child:none` and `-child:123` edit metatags. Allow using ranges with
these metatags (e.g. `-child:1..10`, `child:1,3,5`).
2018-09-29 20:42:38 -05:00
evazion
984cd0432c
Fix #3928 : fix case sensitivity in metatags.
2018-09-27 23:42:30 -05:00
evazion
d1e9f9c3ce
Fix broken test artist controller tests, tag alias test.
2018-09-26 00:42:47 -05:00
evazion
f5c9616f62
tests: fix broken tests.
2018-09-24 17:34:08 -05:00
evazion
d9063a9f2a
nijie: support preview urls ( #3919 ).
2018-09-24 17:08:37 -05:00
evazion
5525bbe1ca
nijie: normalize all thumbnail urls ( #3919 ).
2018-09-23 20:08:14 -05:00
evazion
d294514dc0
nijie: don't crash on invalid urls or deleted works ( #3919 ).
2018-09-23 20:08:14 -05:00
evazion
b6228505aa
nijie: fix page_url method.
...
The id in a bare image url is the member id, not the illust id.
2018-09-23 20:08:13 -05:00