evazion
39bd766b34
Fix #4053 : Add disapproval index improvements.
...
Add search form to /moderator/post/disapprovals.
2019-08-02 22:03:03 -05:00
evazion
6c69165780
Fix #4105 : IP bans leak banned IPs in /mod_actions.
2019-08-01 21:21:18 -05:00
evazion
065609ff4f
artists: prevent creating artist entries for non-artist tags ( #4107 , 2717).
...
Validate that artist entries belong to an artist tag. Don't allow
creating artist entries for character/copyright/meta tags, but do allow
entries for general tags (the gentag will be automatically changed to an
artist tag).
2019-08-01 20:20:06 -05:00
evazion
bcaefa0a7e
Fix #4107 : Can't create artist entry if tag already has a wiki #4107
2019-08-01 19:34:21 -05:00
Albert Yi
5e5e86c383
limit number of synchronous saved search updates
2019-07-02 17:16:33 -07:00
Albert Yi
318bee9953
make saved search populate synchronous for gold users
2019-07-02 12:30:42 -07:00
Albert Yi
21ba1000f1
fixes #4079 : Allow deleted forum items to be seen with the is_deleted parameter
2019-05-17 13:11:24 -07:00
Albert Yi
04edc3f533
update factories + tests
2019-05-10 17:31:07 -07:00
Albert Yi
06045ac0d1
fix bug with only param
2019-04-18 13:28:14 -07:00
Albert Yi
0daa8184d4
handle include param for as_json and to_xml
2019-04-18 12:54:36 -07:00
Albert Yi
a12f6badde
add RequestStore gem, support universal only param for api endpoints ( fixes #4068 )
2019-04-17 12:00:42 -07:00
Albert Yi
78322b38f4
fixes #4064 : Artist new page giving false rejection messages
2019-02-25 11:03:45 -08:00
Albert Yi
d8aabff77b
remove post keeper references
2019-01-31 15:45:06 -08:00
Albert Yi
caf60d690d
better check for forum post votability
2019-01-28 17:23:33 -08:00
Albert Yi
a5943d2c3a
Merge pull request #4044 from r888888888/tag-change-notices
...
Tag change notices
2019-01-24 14:23:35 -08:00
evazion
1292717c52
dynamic requests: handle deleted/processing/queued statuses ( #3824 )
...
Fix bug where [ta:1234] didn't render if the request's status was
'deleted', 'queued', or 'processing'.
2019-01-24 13:52:16 -06:00
Albert Yi
17ae357da9
eliminate mixpanel references
2019-01-23 16:37:44 -08:00
Albert Yi
1550538dc1
Tag change notices
...
This adds a small notice at the bottom of post searches if a single tag search is the target of any tag change request.
2019-01-22 17:22:07 -08:00
Albert Yi
68a5a4be09
handle error state better for recommender service
2019-01-22 14:57:31 -08: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
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
8b0af19f7f
fixes #3824 : render tag requests dynamically in the forum post
...
refactoring
2019-01-08 12:57:37 -08:00
evazion
82b09860f2
Fix #4032 : /tag_aliases page is broken.
2019-01-02 15:55:24 -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
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
fde398d37b
posts: clarify missing artist tag warning ( #4029 ).
2018-12-28 15:52:49 -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
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
evazion
3e382bd831
Fix #4014 : Incorrect tag type counts on posts.
2018-12-19 12:20:29 -06:00
evazion
d2f92b7aa7
artists: fix quick search to search urls.
...
ref: https://danbooru.donmai.us/forum_topics/9127?page=265#forum_post_153124
2018-12-16 12:07:50 -06:00
evazion
c700ea4b5f
Fix #4016 : Translated tags failing to find some tags.
...
* Normalize spaces to underscores when saving other names. Preserve case
since case can be significant.
* Fix WikiPage#other_names_include to search case-insensitively (note:
this prevents using the index).
* Fix sources to return the raw tags in `#tags` and the normalized tags
in `#normalized_tags`. The normalized tags are the tags that will be
matched against other names.
2018-12-16 11:37:57 -06:00
evazion
a1df1abf0b
Fix #4020 : Flagger name information leak.
2018-12-14 18:08:43 -06:00
Albert Yi
4706cae114
Add user permissions for flagging and for giving user feedback
2018-12-11 17:08:31 -08:00
evazion
957d1527d1
autocomplete: add order:*_count metatags.
2018-12-11 18:10:20 -06:00
evazion
ea9c3576d8
search: add synonyms for *_count metatags.
...
Allow e.g. `deleted_comments` as a synonym for `deleted_comment_count`.
2018-12-11 18:10:20 -06:00
evazion
b1335616dd
search: add {flag,appeal,approval,replacement,child,pool}_count metatags ( #4004 ).
2018-12-11 18:10:20 -06:00
evazion
4a1f0523a4
search: add comment_count, note_count metatags ( #4004 ).
...
Add these metatags:
* comment_count
* deleted_comment_count
* active_comment_count
* note_count
* deleted_note_count
* active_note_count
* order:comment_count
* order:deleted_comment_count
* order:active_comment_count
* order:note_count
* order:deleted_note_count
* order:active_note_count
2018-12-11 18:10:20 -06:00
evazion
37b2214472
post_tags_match: replace joins with subqueries.
...
Refactor various post_tag_match methods to use subqueries instead of joins.
This simplifies things inside PostQueryBuilder, since now we can assume
we're always dealing with a Post relation, rather than some other table
joined with the posts table.
2018-12-11 18:10:20 -06:00
Albert Yi
a66f9837ec
Merge pull request #4003 from evazion/fix-3946
...
Artist versions: improve diffing of urls and other names (#3946 )
2018-12-08 20:43:27 -08:00