Commit Graph

606 Commits

Author SHA1 Message Date
evazion
d8eef6ef2b Fix #1563: Warn users attempting to upload with very few tags. 2017-12-27 15:04:00 -06:00
BrokenEagle
a973415139 Fixed cutoff for what is considered an added tag 2017-12-21 10:10:13 -08:00
BrokenEagle
b2598b7966 Add validation warning for non-general/meta tags 2017-12-20 08:58:04 -08:00
evazion
8c44789fbc Fix #3440: Implications aren't applied to automatic tags.
Apply implications after adding automatic tags.
2017-12-19 14:37:12 -06:00
r888888888
4dabbde05d use full file url for open graph url if a file doesn't have a large version 2017-12-15 11:30:26 -08:00
Albert Yi
5da62eff8d Merge branch 'master' into fix-3278 2017-12-13 14:30:08 -08:00
Albert Yi
850ac353ed Merge pull request #3399 from BrokenEagle/fix-gold-safemode-message
Changed safe mode error message for Gold+ users
2017-12-13 14:26:50 -08:00
Albert Yi
1d901e9307 Merge pull request #3357 from evazion/feat-soft-post-validations
Post editing: add warning when creating new tags (#3352)
2017-12-13 14:24:51 -08:00
evazion
131c0109d4 Address #3415: og:image meta tags can point to video files. 2017-12-06 09:47:57 -06:00
BrokenEagle
839f0f653f Changed safe mode error message for Gold+ users
- Made explicit the error messages and their order
- Banned takes priority, then Gold+, then Safe
- Made the groups exclusive of each other
2017-12-05 19:08:01 -08:00
evazion
acd49be4cc Fix #3419: Deleting a post doesn't clear parent's "parent" status.
Bug: when deleting a child post and the "Move favorites to parent?" option is
set, the parent's has_active_children flag is not cleared.

`give_favorites_to_parent` moves the votes, and moving the votes has the
side effect of reloading the post (to get the new score). But reloading
the post wipes out the is_deleted_changed? flag, which is used by `update_parent_on_save`.

Fix: update the `is_deleted` flag *before* moving favorites, so that the
`update_parent_on_save` callback runs before `give_favorite_to_parent` runs.
2017-12-05 19:35:15 -06:00
evazion
3c6a613964 Fix #3410: Unable to create a new wiki page.
Fix `Post.fast_count(nil)` failing when the user had the "safe mode" or
"deleted post filter" options turned on.
2017-11-29 12:34:07 -06:00
evazion
5b89f56c2e Move PostgresExtensions to ApplicationRecord. 2017-11-26 13:57:51 -06:00
evazion
6d9708a22e posts: don't warn about missing artist tags for official_art. 2017-11-26 11:43:46 -06:00
evazion
cc1f8ab9ed posts: warn when a tag cannot be removed due to implications / automatic tags. 2017-11-25 17:03:33 -06:00
evazion
94fa835733 posts: warn when post from known source is missing an artist tag. 2017-11-25 17:03:33 -06:00
evazion
4cd372296d posts: warn when post is missing copyright tags. 2017-11-25 17:03:33 -06:00
evazion
d571efd703 posts: warn when adding artist tag with no artist entry. 2017-11-25 17:03:33 -06:00
evazion
963eacd849 posts: warn when adding newly created tags. 2017-11-25 17:03:32 -06:00
r888888888
060762defa add service for purging files from cloudflare cache 2017-11-22 13:19:30 -08:00
r888888888
5c5daeac72 remove unused mobile templates 2017-11-21 10:19:24 -08:00
r888888888
902f657a5d for video/ugoira, don't render preview if file doesn't exist yet 2017-11-21 10:16:03 -08:00
evazion
134958d137 Fix #3390: Searching certain metatags results in an empty paginator
Fixes Post#get_count_from_cache to only lookup the count in the tags
table when the search is for a single "simple" tag.

Check memcache when the search is not a simple tag:

* multi-tag searches (touhou rating:s)
* single metatag searches (rating:s, source:"foo bar")
* negated tags (-touhou)
* wildcard tags (*touhou*)
* or searches (~touhou)
2017-11-20 14:41:02 -06:00
r888888888
a4c13a7e96 enable vacuum cron task, disable postupdates 2017-11-16 14:29:12 -08:00
r888888888
73f257ec63 disable manual post count expiration, rely solely on timed expiries (fixes #3376) 2017-11-16 13:43:38 -08:00
r888888888
7dea7eef89 run tag count counters synchronously 2017-11-15 16:29:39 -08:00
r888888888
dba0117b99 when expiring tag cache, only queue work for remote servers 2017-11-15 11:46:52 -08:00
BrokenEagle
e312ae3d92 Added fix script to update the correct tagcount for all posts 2017-11-14 17:11:18 -08:00
evazion
5f39a8b4b2 Fix #3365: Incorrect tag category counts.
`Hash[array]` didn't work because Hash needed to be called as `Hash[*array]`. Or,
more simply, `array.to_h`.
2017-11-13 21:45:12 -06:00
BrokenEagle
6838901aac Moved non-config tag category info to its own class 2017-11-07 16:21:29 -08:00
BrokenEagle
1e5540f3a0 Moved most of the tag category config logic to the config file
-Fixed an unused Post class method (fix_post_counts) that didn't have a parameter
2017-11-06 15:27:54 -08:00
BrokenEagle
6e812ca714 Moved adding post to new pool until after post save 2017-10-30 16:38:31 -07:00
BrokenEagle
635c76df57 Move case sensitive metatags to before downcase 2017-10-21 13:58:55 -07:00
r888888888
2c56a19dec rework how category metatags work #3307 2017-10-09 16:08:14 -07:00
r888888888
da170aa413 fixes #3307 2017-10-09 13:34:58 -07:00
r888888888
0bfd201973 simplify logic 2017-09-13 14:47:42 -07:00
r888888888
1f3bafc061 delegate removal from favorites and updating of user fav counts to delayed job 2017-09-13 14:19:54 -07:00
evazion
af42740ca9 expunge: decrement user favorite counts. 2017-09-13 13:29:35 -07:00
evazion
fd9dc6f647 expunge: decrement upload and note/post update counts (fix #2062). 2017-09-13 13:29:35 -07:00
r888888888
ed75e4bcf6 disable cropped thumbnails 2017-09-12 17:14:12 -07:00
r888888888
9041a5bc34 delegate thumbnails to cache 2017-09-12 15:51:20 -07:00
r888888888
4fb55657c0 refactor cropped images into explore/posts/intro 2017-09-12 13:03:59 -07:00
r888888888
99e38c9e95 defer to cdn for cropped thumbnails 2017-09-08 16:49:50 -07:00
r888888888
68863ed018 fixes #3287 2017-09-08 15:01:12 -07:00
r888888888
bc69badadd better error handling of failed deviant art logins 2017-08-28 16:19:41 -07:00
r888888888
b769b83262 use Cache.hash instead of Cache.sanitize 2017-08-24 15:43:38 -07:00
Albert Yi
9d4697d5cc Merge pull request #3240 from evazion/fix-3235
Fix #3235: Replacements deleting files currently in use.
2017-07-26 17:10:44 -07:00
evazion
b53371b698 Fix #3235: Replacements deleting files currently in use. 2017-07-24 23:43:38 -05:00
evazion
67528ce5ab Fix hidden attribute leaks in legacy post controller (#3237). 2017-07-24 20:35:12 -05:00
evazion
bda285d97f Post#expunge!: simplify has_children flag logic. 2017-07-21 00:13:20 -05:00