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
evazion
e25e8d564a
artist versions: refactor diffs.
2018-12-07 12:45:51 -06:00
evazion
7ae27c370d
Fix #3995 : Automatically imply *_school_uniform -> school_uniform.
2018-12-05 12:19:27 -06:00
Albert Yi
f7b9417005
swallow failed saved search populate calls
2018-11-28 13:09:48 -08:00
Albert Yi
60cee5f452
Merge pull request #3989 from evazion/fix-3987
...
Wiki pages: convert other_names column to array (#3987 )
2018-11-19 16:23:32 -08:00
Albert Yi
4077c4776c
Merge pull request #3986 from r888888888/refactor-saved-searches
...
Refactor saved searches
2018-11-15 13:44:49 -08:00
evazion
41ff05c121
artists: convert other_names to array ( #3987 ).
2018-11-15 14:31:16 -06:00
Albert Yi
0508b127fd
continue refactoring savedsearch
2018-11-15 12:06:13 -08:00
evazion
4fcb82f2e6
Fix #3991 : Loading post #1604318 is broken.
...
Fix exception in Pool#previous_post_id when the post id is not contained
in the pool.
This can happen when a post's pool_string lists the post as being in a
certain pool, but the post is not included in the pool's post_ids. Such
pool_string / post_ids inconsistencies exist because of past bugs.
2018-11-15 10:28:20 -06:00
evazion
741462ae68
artist versions: convert other_names, url_string to arrays ( #3987 ).
2018-11-14 14:25:02 -06:00
evazion
fe2698a011
tag implications: convert descendant_names to array ( #3987 ).
2018-11-14 12:51:18 -06:00
evazion
308a5021b4
wiki pages: convert other_names to array ( #3987 ).
2018-11-13 19:18:11 -06:00
evazion
b660aeefd7
application record: add array_attribute method.
...
Add `array_attribute` method that defines helper methods for converting
array attributes to or from strings.
2018-11-13 19:18:11 -06:00
Albert Yi
df02eb7951
eliminate listbooru references
2018-11-12 18:02:49 -08:00
evazion
a20eba9ef7
Fix #3983 : Uploads: NoMethodError - undefined method `>=' for nil:NilClass
...
* Rename Upload#download_for_upload to #get_file_for_upload.
* Fix #get_file_for_upload to raise error if no file or source url was given.
* Fix javascript upload validation to disallow submitting form if file is
not present and the source is not an url.
2018-11-11 17:12:39 -06:00
evazion
e10c6c6a30
Fix #3982 : Uploads: URI::InvalidURIError - URI must be ascii only.
2018-11-11 12:17:58 -06:00
evazion
eade33fa7c
Fix #3981 : Inconsistency between posts and pools.
2018-11-10 12:37:08 -06:00
evazion
e69cbe7f81
pools: post_count fixups.
2018-11-08 19:35:17 -06:00
evazion
fb7d83c54f
pools: drop post_count column ( fix #3667 )
2018-11-08 15:35:41 -06:00
evazion
115ed16a96
pools: store post_ids as array instead of string ( fix #3979 )
2018-11-08 15:09:31 -06:00
evazion
572645d888
pools: cleanup unneeded code.
...
* create_mod_action_for_destroy didn't exist (pools are never destroyed).
* is_active and is_deleted are already initialized via database defaults.
* creator_name is already defined by belongs_to_creator.
* Returning true/false in validations does nothing.
2018-11-07 16:10:36 -06:00
evazion
1281481548
Fix #3978 : Pool name/category validations not being enforced.
2018-11-07 16:10:16 -06:00
evazion
29b6121a07
pools: refactor #neighbors + fix broken #neighbors tests.
2018-11-04 19:40:57 -06:00
evazion
c7e6c2a44a
posts: fix pixiv id parsing (fixup for 5cf6a43)
2018-11-04 14:22:29 -06:00
Albert Yi
542641e3e2
refactor pool nav html
2018-11-01 17:42:49 -07: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
5097babfaa
add opt out for mixpanel tracking
2018-10-22 16:01:39 -07:00
Albert Yi
e133a598a3
fixes #3936
2018-10-12 15:17:32 -07:00
Albert Yi
185d303ba1
eliminate tag cache expiry delayed job
2018-10-11 16:36:50 -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
fdb6e4ecee
moebooru: rewrite konachan urls for Post#normalized_source ( #3911 ).
2018-10-06 00:58:22 -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
4ab97a01bd
Fix #3943 : Eliminate legacy code for distributed memcached servers.
2018-10-04 13:22:49 -05:00
evazion
060112293b
/users: add more search params.
2018-10-04 13:03:18 -05:00
evazion
0966a290e4
Fix #3941 : Add ability to search users by inviter.
2018-10-04 12:44:59 -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
Albert Yi
02156f3f34
Merge pull request #3933 from evazion/fix-tag-set-presenter
...
Optimize tag set presenters
2018-10-01 12:55:05 -07:00
evazion
35eaf28822
Post#fast_count: lower timeout to 1 second.
2018-10-01 12:55:57 -05:00
evazion
ccb57e802c
Fix #3934 : Post#fast_count has very slow worst case behavior.
2018-10-01 12:55:57 -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