Commit Graph
1897 Commits
Author SHA1 Message Date
Type-kun bf6add5273 Add more support for negated existing metatags 2017-06-15 18:11:53 +05:00
Albert Yi 24ad435067 Merge pull request #3155 from evazion/fix-artcomm-version-merge
Fix #3149: Artist commentaries should merge versions
2017-06-14 12:26:46 -07:00
evazion 155faf8380 commentaries: merge versions (fix #3149). 2017-06-14 13:52:24 -05:00
Albert Yi f780b32012 Merge pull request #3145 from r888888888/flagger_metatag
Add "flagger:" and "appealer:" metatags (fixes #3142)
2017-06-14 11:02:08 -07:00
evazion 1ffc9d286c Fix User#can_view_flagger?. 2017-06-14 12:08:25 -05:00
Type-kun d4944d6c11 Avoid using creator_id as a local variable in flag model 2017-06-14 20:56:02 +05:00
Type-kun 1375cc5307 Added privilege check for seeing flagger usernames
Also reworked all places dealing with flagger names to use said privilege
2017-06-14 20:43:25 +05:00
r888888888 4a07848b6d add prefix for sqs message group id 2017-06-13 16:36:39 -07:00
r888888888 efe5e0e95e add message group id for post archives 2017-06-13 16:35:01 -07:00
Albert Yi 40d24278cf Merge pull request #3150 from evazion/fix-artcomm-whitespace
Fix #2174: Trim whitespace from artist commentary
2017-06-13 16:02:31 -07:00
Albert Yi 7881d06858 Merge pull request #3148 from evazion/fix-replacement-deletions
Post replacements: don't delete files currently in use.
2017-06-13 15:52:22 -07:00
Albert Yi ee28cf539f Merge pull request #3146 from evazion/fix-reltags-alias
Fix #1608: Show wiki page of alias consequent for Related Tags
2017-06-13 15:39:42 -07:00
evazion f8afabd51c commentaries: trim whitespace from fields. 2017-06-13 16:42:30 -05:00
evazion 1aafdc3928 commentaries: migrate columns to non-null. 2017-06-13 16:42:29 -05:00
evazion 27aa9fe82a post replacements: don't delete files still in use.
Bug: if a user replaces a post with another image, then replaces the
post back to the original image, then the deletion job for the original
image will still run. The will delete the original file, but that file
is now in use again and should not be deleted.
2017-06-13 02:20:23 -05:00
evazion c06ae5277e Fix #1608: Show wiki page of alias consequent for Related Tags
Make related tags apply aliases before fetching tags from the wiki page.
2017-06-12 19:52:19 -05:00
r888888888 d9ea925f4e add support for searching for dup-related flags 2017-06-12 15:25:07 -07:00
Type-kun 5d4592e0e0 Add "flagger:" and "appealer:" metatags (fixes #3142) 2017-06-13 00:15:49 +05:00
evazion 9234fa7885 post replacement: allow replacing ugoiras. 2017-06-08 23:54:51 -05:00
Albert Yi f44f5d1fdb Merge pull request #3126 from evazion/feat-queue-pools
Fix #3125: Show pools in mod queue
2017-06-08 14:13:44 -07:00
Albert Yi 7fb0e561cc Merge pull request #3124 from evazion/fix-artstation-sources
Multiple ArtStation fixes
2017-06-08 14:11:21 -07:00
Albert Yi 7af1018f18 Merge pull request #3127 from evazion/fix-3123
Fix #3123: Error with user JSON query when the Archive service is not installed
2017-06-08 14:09:32 -07:00
evazion 23fb6b8d15 /users/$id.json: fix exception when pool archives is disabled (fix #3123). 2017-06-07 22:54:16 -05:00
evazion 58bd0670b7 Post#pools: avoid query when post has no pools. 2017-06-07 22:45:28 -05:00
evazion 151b276fb9 modqueue: display pools for each post (fix #3125). 2017-06-07 22:45:01 -05:00
Type-kun b3cd93a75c Fixes #3122 2017-06-07 21:19:53 +05:00
evazion edd02c4019 artstation: normalize to www.artstation.com/artwork/$id for sidebar. 2017-06-07 10:20:18 -05:00
r888888888 268d0450bc additional fixed for amazonbackup helper methods 2017-06-05 13:38:10 -07:00
r888888888 2878d1533d set acl for amazonbackup helper methods 2017-06-05 13:28:39 -07:00
r888888888 e16320a376 fix paths of large sized images on s3 backup 2017-06-05 13:07:51 -07:00
evazion 1d62ea3220 /forum_topics: don't list stickies first in json/atom responses. 2017-06-04 16:14:55 -05:00
r888888888 6a706a6b90 fix normalization for nico seiga urls 2017-05-31 15:45:28 -07:00
r888888888 216ca06fee fixes #3100 2017-05-30 15:38:01 -07:00
r888888888 6eb5a4c017 fixes #3096 2017-05-30 12:13:08 -07:00
Albert Yi 2e78542a68 Merge pull request #3095 from evazion/fix-3091
Fix #3091: Inconsistency between pool_string and pool.post_ids.
2017-05-30 11:14:46 -07:00
Albert Yi 5b56596de1 Merge pull request #3092 from evazion/opt-reltags
Optimize related tags calculation
2017-05-30 11:12:24 -07:00
evazion 31b58e17b1 pools: lock pool when adding/removing posts (fixes #3091).
Adding a post id to a pool's post_ids string is non-atomic, hence we
must lock the pool to avoid a race condition.

Adding a pool to a post's pool_string is likewise non-atomic, hence we
must lock the post as well.
2017-05-26 18:35:33 -05:00
evazion a401b1f570 posts: fix nil source tests; fix source:none metatag. 2017-05-26 15:12:39 -05:00
evazion 991d5cbf6d related tags: optimize calculate_from_sample.
calculate_from_sample is called when clicking the General / Artist /
Copyright / Characters buttons during tag editing. Currently it's slow
because it counts up the tags in ruby, and because it makes repeated
calls to memcache in the inner loop when filtering tags by category.

This changes it to do the counting and filtering entirely in SQL using a
GROUP BY tag / COUNT(*) aggregation. This is faster and makes larger
sample sizes more feasible.
2017-05-26 12:41:48 -05:00
r888888888 f38810bd1c fixes #3086 2017-05-24 15:57:06 -07:00
r888888888 6023abf087 remove delayed job count constraint when calculating related tags (fixes #3087) 2017-05-24 15:47:15 -07:00
evazion 1a52f9db2b wiki pages: add wildcard support to "other names" search. 2017-05-24 14:59:00 -05:00
Albert Yi f93cd11fb5 Merge pull request #3085 from evazion/feat-bur-search
Add search form to /bulk_update_requests.
2017-05-23 16:55:17 -07:00
evazion 614bf44086 /bulk_update_requests: add search form. 2017-05-23 17:23:32 -05:00
evazion 02b3622f12 api: allow search[*_id] params to accept lists of ids in more places. 2017-05-23 15:45:40 -05:00
evazion 8988f9cde8 /forum_topics.json: add search[id]=<ids> param. 2017-05-23 15:27:15 -05:00
evazion 3aa405eac1 Post#favorited_by?: fix to cast to a boolean. 2017-05-23 13:12:10 -05:00
evazion c5de983f61 Post#favorited_by?: fix to return a boolean. 2017-05-23 11:53:03 -05:00
Albert Yi 3be06364fa Merge pull request #3077 from evazion/fix-dmail-title-search
Fix case sensitivity bug in dmail title search.
2017-05-22 11:59:22 -07:00
evazion c31d11b095 bans: fix case sensitivity bug in ban reason search. 2017-05-21 20:13:43 -05:00