Albert Yi
035a0026cd
fixes #4050
2019-01-22 15:14:10 -08:00
Albert Yi
68a5a4be09
handle error state better for recommender service
2019-01-22 14:57:31 -08:00
evazion
6b167d6055
BURs: add edit and reject links to the BUR show page ( #3824 ).
2019-01-15 21:23:01 -06:00
evazion
a284d3fb4a
BURs: allow only pending BURs to be rejected.
...
Fix it being possible to reject approved BURs, or to re-reject already
rejected BURs.
Rejecting an approved BUR wouldn't revert the aliases/implications, but
it would change the BUR's status to rejected.
2019-01-15 21:20:28 -06:00
evazion
971281949f
artist versions: tune url similarity threshold ( #4036 )
2019-01-13 15:40:36 -06:00
evazion
54f562bf1c
Fix #4042 : Remove source_request by default when replacing posts.
2019-01-13 15:06:30 -06:00
evazion
13dff046f7
pixiv: fix illust id parsing (fixup 8cadef2dd)
2019-01-13 15:02:51 -06:00
evazion
8cadef2dd7
pixiv: fix illust id parsing ( fix #4043 ).
...
* Tighten up illust id parsing to avoid misparsing ids from
non-illust urls (sketch urls and novel urls).
* Move id parsing tests from post_test.rb to sources/pixiv_test.rb.
* Drop support for touch.pixiv.net urls. These urls are no longer used
by Pixiv and aren't present as the source of any posts on Danbooru.
2019-01-13 14:28:51 -06:00
Albert Yi
3f95b5163c
Merge pull request #4040 from r888888888/estimate-tag-change-counts
...
add post count estimates for bulk update requests
2019-01-11 16:20:46 -08:00
Albert Yi
cd323c64a5
don't embed BUR script in expand tags if it's short enough
2019-01-11 16:20:23 -08:00
Albert Yi
f33b23d035
add post count estimates for bulk update requests
2019-01-09 15:54:55 -08:00
Albert Yi
844b1a81ba
Merge pull request #4039 from evazion/fix-4038
...
Fix #4038 : Attempting to create an IP-ban bans the creator.
2019-01-09 14:47:32 -08:00
Albert Yi
d97622d1bb
Merge pull request #4007 from evazion/fix-4004
...
Fix #4004 : Add additional order by metatags for posts
2019-01-09 14:43:15 -08:00
evazion
80f43f9a7c
Fix #4038 : Attempting to create an IP-ban bans the creator.
...
* Rename comments.ip_addr to comments.creator_ip_addr.
* Fix belongs_to_creator to not clobber ip_addr field.
2019-01-09 16:20:34 -06:00
Albert Yi
fa6d86e882
handle error case for recommendation service
2019-01-08 14:49:57 -08:00
Albert Yi
42ad2527bd
Merge pull request #4033 from r888888888/dynamic-tag-requests
...
fixes #3824 : render tag requests dynamically in the forum post
2019-01-08 14:42:20 -08:00
Albert Yi
8b0af19f7f
fixes #3824 : render tag requests dynamically in the forum post
...
refactoring
2019-01-08 12:57:37 -08:00
evazion
5c54c61d65
Fix #4035 : The Related Tag JSON endpoint is returning the wrong information
...
* Fix /related_tags.json to return a list of tags in the `other_wikis` field.
* Add support for /related_tags.xml.
2019-01-07 13:30:10 -06:00
evazion
04d5b16da7
pixiv: fix failure to upload bad pixiv id images ( fix #4031 )
...
Bug: Uploading bad pixiv id images failed because the pixiv strategy
raised a BadIDError exception when the upload service checked for the
ugoira frame data.
2019-01-03 18:01:20 -06:00
evazion
7478c7a913
Fix #4034 : Several keyboard shortcuts are missing an ID.
2019-01-03 17:19:16 -06:00
evazion
886096b47a
BURs: fix remove alias command removing inactive aliases.
...
Fix the `remove alias` and `remove implication` commands to only remove
active aliases or implications, not pending/deleted/retired ones.
2019-01-03 16:30:39 -06:00
evazion
82b09860f2
Fix #4032 : /tag_aliases page is broken.
2019-01-02 15:55:24 -06:00
Albert Yi
f78ff57884
fix forum topic test
2019-01-02 12:33:56 -08:00
Albert Yi
6f30c99ac3
fix tag alias correction tests
...
also removes references to distributed memcached servers in tag alias correction
2019-01-02 11:52:35 -08:00
evazion
d32882e1ee
aliases/implications: fix controller tests.
2018-12-31 19:08:15 -06:00
evazion
0ab2dfc5d2
aliases/implications: fix conflicting definitions of active scope.
2018-12-31 19:03:01 -06:00
evazion
17a5db72a6
aliases/implications: allow searching by antecedent or consequent tag type.
2018-12-31 18:55:36 -06:00
evazion
fd1c9dbf30
aliases/implications: add active/deleted/processing statuses to search form.
2018-12-31 18:29:25 -06:00
evazion
aceded710a
aliases/implications: fix retired aliases being sorted first on index page.
2018-12-31 17:07:14 -06:00
evazion
d393d67a9b
aliases/implications: don't destroy removed aliases ( #4024 ).
2018-12-31 17:07:14 -06:00
evazion
f5116c5ce2
aliases/implications: allow duplicate inactive aliases/implications.
...
Allow multiple pending, deleted or retired aliases/implications for the
same tag.
This is so that deleted or retired aliases can be resubmitted as new
pending requests.
2018-12-31 17:07:14 -06:00
evazion
44a54f75cd
tests: don't automatically approve aliases/implications on creation.
...
Automagically approving inactive aliases makes testing more difficult.
2018-12-31 17:07:14 -06:00
evazion
341403c7bb
tests: fix broken bulk update request test.
2018-12-31 17:07:14 -06:00
evazion
b12e8b5058
Fix #4030 : Artstation artist_name broken for direct image urls.
2018-12-31 11:45:50 -06:00
evazion
ff62b63bab
notes: whitelist the 'mask' css property.
...
ref: https://danbooru.donmai.us/forum_topics/9127?page=266#forum_post_153530
2018-12-29 12:08:02 -06:00
evazion
fde398d37b
posts: clarify missing artist tag warning ( #4029 ).
2018-12-28 15:52:49 -06:00
evazion
6a77b68b74
tumblr: fix tests.
2018-12-27 15:03:11 -06:00
evazion
0f513d1a1b
twitter: include intent url in new artist entries ( #4028 ).
2018-12-27 15:03:11 -06:00
evazion
2129e60b2b
pixiv: include stacc url in new artist entries ( #4028 ).
2018-12-27 15:03:11 -06:00
evazion
1f73e60514
sources: add methods for customizing new artist entries.
...
* Rename `unique_id` to `tag_name`.
* Add `other_names` and `profile_urls` methods that sources can override
to provide extra names or urls when creating new artist entries.
2018-12-27 15:03:11 -06:00
evazion
2170961f47
artists: improve prefilling of new artist form ( #4028 )
...
* When creating an artist by clicking the '?' next to the artist tag in
the tag list, prefill the new artist form by finding the artist's last
upload and fetching its source data.
Previously we filled the urls with the source of the artist's last
upload, which was wrong because it was usually a direct image URL (#3078 ).
* Fix the other names field not escaping spaces within names to underscores.
* Fix the other names field being potentially prefilled with duplicate names.
2018-12-27 15:03:11 -06:00
evazion
286bf2f285
artists: filter out duplicates from other names ( #4028 ).
2018-12-27 15:03:11 -06:00
evazion
0dd44e64a4
artists: add notice about separating other names with spaces ( #4028 ).
2018-12-27 15:03:11 -06:00
evazion
3c9b26c247
tests: fix *_(cosplay) tagging test (fixup for 51b08d224).
2018-12-26 20:16:59 -06:00
evazion
719f556dd5
aliases: warn about conflicting wikis when alias is requested.
...
* Warn about conflicting wiki pages during secondary validation.
* Only warn about missing wiki if both tags are missing a wiki page.
2018-12-26 17:30:07 -06:00
evazion
365e04b5f9
implications: fix validation of circular implications.
...
Fix bug where circular chains like `a -> b && b -> c && c -> a` were
allowed.
2018-12-26 17:30:07 -06:00
evazion
51b08d2243
implications: ensure antecedent/consequent tags exist.
2018-12-26 17:30:07 -06:00
evazion
c27ba02b88
aliases/implications: clean up validations.
...
* Don't return true/false in validations (does nothing).
* Prefer `errors[:base]` over `self.errors[:base]`.
* Add antecedent_wiki / consequent_wiki associations.
* Factor out antecedent_and_consequent_are_different validation.
2018-12-26 17:30:07 -06:00
Albert Yi
ca7c56f95f
fix: url normalization for non-project artist subdomains (maybe fixes #4021 )
2018-12-19 15:19:00 -08:00
Albert Yi
372338e0e5
fix : #4022 Gifting someone a gold account shows "You are now a Builder level account."
2018-12-19 15:19:00 -08:00