Commit Graph

1089 Commits

Author SHA1 Message Date
Albert Yi
7a3431caaa Merge pull request #3097 from evazion/fix-mass-update
Mass updates: fix exception when moving saved searches.
2017-05-30 11:41:16 -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
88d14b30ed mass updates: log modaction after update successfully completes. 2017-05-28 11:56:44 -05:00
evazion
c1a8800bf8 mass updates: fix exception when moving saved searches. 2017-05-28 11:55:05 -05:00
evazion
8f98e8e03c posts: redefine source column to be non-NULL (fixes #3090). 2017-05-26 13:54:17 -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
evazion
1a52f9db2b wiki pages: add wildcard support to "other names" search. 2017-05-24 14:59:00 -05:00
evazion
05c6716def Fix date:, age: metatags to use the index. (fix #672). 2017-05-23 12:59:08 -05:00
Albert Yi
582666cc7f Merge pull request #3076 from evazion/feat-body-attrs
Fix #3073: Add attribute "data-is-moderator" to the <body> element.
2017-05-22 11:58:11 -07:00
evazion
f1f6e5ccc9 anonymous_user.rb: generate is_<role>? methods from User::Roles. 2017-05-21 12:27:39 -05:00
evazion
fad4d48b1c search: fix order:note, order:comment_bumped to use indexes. 2017-05-19 18:19:05 -05:00
evazion
d74eda2b96 search: readd posts.id secondary sort to order: metatags. 2017-05-19 18:19:04 -05:00
evazion
565945ab7b flags: move flagging inside Post#delete! 2017-05-17 23:48:37 -05:00
r888888888
68a91feadc add ban_expired? method to anonymous user 2017-05-15 16:34:18 -07:00
Albert Yi
2f1faf3c38 Merge pull request #3060 from evazion/fix-3048
Fix #3048: Artist Lookup Failing Due to Changing Usernames
2017-05-15 16:33:53 -07:00
Albert Yi
7d2e1f871b Merge pull request #3056 from evazion/fix-3054
Fix #3054: Artist link broken on Post Upload page
2017-05-15 16:17:26 -07:00
Albert Yi
0ca211d878 Merge pull request #3053 from evazion/feat-replace-images
Avoid pruning post replacement delayed jobs.
2017-05-15 16:14:04 -07:00
evazion
eac827973b Normalize pixiv artist urls to pixiv member page (fix #3048). 2017-05-15 14:12:08 -05:00
evazion
6ee3b2635a Fix returning incorrect pixiv profile url (fixes #3054). 2017-05-14 22:00:06 -05:00
evazion
a6737dfc14 daily_maintenance.rb: don't prune file deletion delayed jobs. 2017-05-14 12:49:11 -05:00
evazion
61a37a09cc Fix translated tags for pixiv (fix #3046).
Translated tags expects `tags` to be an array of `[tag_name, search_link]` pairs.
2017-05-13 19:17:33 -05:00
r888888888
7ae18d1068 bug fix for source pixiv 2017-05-12 16:42:25 -07:00
r888888888
bcec293efe pull additional data from pixiv api (fixes #3042) 2017-05-12 11:17:31 -07:00
evazion
757a7da49b fixup! /source.json: don't encode '&' as '&amp;' in commentaries. 2017-05-10 21:03:29 -05:00
evazion
a2a6a0ce27 /source.json: don't encode '&' as '&amp;' in commentaries. 2017-05-10 18:01:52 -05:00
evazion
8015d62b46 /source.json: strip html tags from artist commentary. 2017-05-10 18:01:51 -05:00
evazion
b2f62482a1 Remove artist commentary handling from download rewrite strategies. 2017-05-10 18:01:51 -05:00
r888888888
b49641f775 fixes #3033 2017-05-09 13:21:21 -07:00
r888888888
ff5586cb01 refactor twitter service to handle cards (fixes #3031) 2017-05-09 12:48:11 -07:00
r888888888
2b74fe669e increase period for deleting mod actions 2017-05-08 13:49:55 -07:00
Albert Yi
f803137106 Merge pull request #3030 from evazion/feat-backups
Backup posts to S3 on creation/replacement
2017-05-08 13:39:41 -07:00
evazion
fd291c8b42 bans: fix exception when user with expired ban logs in.
`ban.destroy` fails because users have many `bans`, not a single `ban`.
Destroying the expired ban isn't necessary anyway.
2017-05-07 12:13:19 -05:00
evazion
7db40fe69f backups: add amazon s3 backup service. 2017-05-05 22:18:28 -05:00
evazion
30a1f204e9 backups: add stub backup service. 2017-05-05 22:18:28 -05:00
evazion
db1fa60a43 Set pawoo sources to html page after upload. 2017-05-03 00:09:51 -05:00
r888888888
3b414db844 defer to popular searches for popular tag list 2017-05-01 17:56:34 -07:00
Albert Yi
d7e83bef79 Merge pull request #3003 from evazion/feat-noter-any-metatag
Add noter:<any|none>, commenter:<any|none> metatags
2017-05-01 14:52:30 -07:00
r888888888
48e9856f37 fixes #3007: Eliminate Janitor role 2017-05-01 14:38:30 -07:00
evazion
b0626a9124 Add commenter:<any|none> metatags. 2017-04-26 16:51:34 -05:00
evazion
69d9cf3927 Add noter:<any|none> metatags. 2017-04-26 16:51:34 -05:00
r888888888
6842056d19 partial fix for #3000 2017-04-26 13:37:12 -07:00
Albert Yi
41b245d19d Merge pull request #2998 from evazion/fix-quote-stripping
Fix [quote] stripping for comments, forum post replies.
2017-04-26 12:43:30 -07:00
evazion
c586a66e1f dtext: recognize [QUOTE] tags when quoting comments, forum_posts.
Fixes a bug with capitalized [QUOTE] tags not being handled properly
when quoting comments or forum posts.
2017-04-24 21:15:47 -05:00
evazion
869f1610fc comments: use server-side quote-stripping instead of reimplementing in js. 2017-04-24 21:15:47 -05:00
evazion
18424531fa Merge mentions quote-stripping code into DText quote-stripping code. 2017-04-24 21:15:42 -05:00
Albert Yi
13189e60b8 Merge pull request #2992 from evazion/fix-calc-reltags-from-posts
Fix slow related tag calculations when searching single metatags.
2017-04-24 14:13:41 -07:00
evazion
8404064854 related_tag_calculator.rb: fix memcache lookup in inner loop.
Remove the category constraint option from RelatedTagCalculator.calculate_from_posts.
It slows things down and isn't used.

This method is used to calculate the related tags sidebar during
searches for single metatags. Using Tag.category_for in the inner loop
caused a memcache call on every iteration. At 100 posts per page and
20-30 tags per post, this led to up to 2000-3000 total memcache calls,
which significantly slowed pageloads.
2017-04-23 17:10:20 -05:00
evazion
e6d1842545 /notes: default to listing notes, not posts. Remove group_by=post.
The posts listing is replaced by a link to order:note.
2017-04-23 14:59:36 -05:00
Albert Yi
d836815622 Merge pull request #2985 from evazion/feat-notes-ruby
Allow <ruby> tags for marking up furigana in notes.
2017-04-22 01:03:47 -07:00
evazion
f1552539f7 notes: allow <ruby> tags for marking up furigana. 2017-04-21 14:31:05 -05:00