evazion
084fcd91ed
Only generate tagged filenames for URLs on post show pages ( #3597 ).
...
Don't generate tagged filenames for urls in the data attributes on
thumbnails, or in the /posts.json api.
2018-04-05 14:20:37 -05:00
evazion
14977397fb
Fix "ArgumentError - wrong number of arguments" during tagging.
2018-04-05 13:27:37 -05:00
Albert Yi
b219992b7d
add async processing for top tagger
2018-04-03 16:00:36 -07:00
evazion
8fd9d374ca
Fix #3583 : Copying notes should copy tags to destination.
2018-03-31 12:58:56 -05:00
evazion
8e7ad9eb97
Post#copy_notes_to: wrap in transaction.
2018-03-31 11:44:49 -05:00
evazion
41a4ff15cd
posts: remove unused file path / url methods.
...
* Remove file_path_for, cropped_file_url (dead code)
* Remove complete_preview_file_url (preview_file_url now returns absolute links)
* Remove `file_name` (only used for Download link in sidebar)
2018-03-20 19:49:55 -05:00
evazion
b7f7187f63
posts: use storage manager to delete files.
2018-03-20 19:49:06 -05:00
evazion
f0bf1bc66e
posts: use storage manager to backup files.
...
* Perform backups synchronously inside `distribute_files` instead of
asynchronously in `queue_backup`. Asynchronous backups assumed that
files are stored on the local filesystem, which isn't true in general.
* Remove obsolete backup service classes.
2018-03-20 19:49:06 -05:00
evazion
6d0d1a3ce9
posts: use storage manager to build file urls.
2018-03-20 19:49:06 -05:00
evazion
c76463f34d
uploads: use storage manager to distribute files.
...
Refactors the upload process to pass around temp files, rather than
passing around file paths and directly writing output to the local
filesystem. This way we can pass the storage manager the preview /
sample / original temp files, so it can deal with storage itself.
* Change Download::File#download! to return a temp file.
* Change DanbooruImageResizer and PixivUgoiraConverter to accept/return
temp files instead of file paths.
* Change Upload#generate_resizes to return temp files for previews and samples.
* Change Upload#generate_resizes to generate ugoira .webm samples
synchronously instead of asynchronously.
2018-03-20 19:49:06 -05:00
evazion
60dcfbfbdd
uploads: autotag animated_gif/png during upload.
...
Move animated_gif / animated_png autotagging to take place during
uploading, instead of during tag editing. We can't generally assume the
file will be present on the local filesystem after uploading.
2018-03-20 19:49:06 -05:00
evazion
8a012d4c91
Remove unused mobile mode code ( #3206 ).
...
Mobile mode was removed in 31e36cf .
2018-03-20 02:29:06 -05:00
r888888888
3657cacd17
* post keeper is calculated synchronously
...
* add fallback mechanism in case archive service is not up
* pass along most recently added tags to any keeper calculation
2018-03-08 16:00:44 -08:00
r888888888
0c5dcbbf68
Revert "Revert "implement post keepers""
...
This reverts commit b9fcfe0442 .
2018-03-06 18:04:31 -08:00
r888888888
689b5690bf
fixes #3560
2018-02-22 11:15:42 -08:00
Albert Yi
b9fcfe0442
Revert "implement post keepers"
2018-02-07 12:28:56 -08:00
Albert Yi
2e62916832
Merge pull request #3529 from r888888888/most-valued
...
implement post keepers
2018-02-07 12:10:38 -08:00
r888888888
ba6e3f4a0e
gracefully handle bad connection errors to replica db ref #3212
2018-02-05 15:05:21 -08:00
r888888888
32cc508edb
hide uploader information on posts/show page, add keeper information
2018-02-01 14:38:03 -08:00
BrokenEagle
3933c273c4
Add mod action for move favorites
2018-01-30 11:27:28 -08:00
Albert Yi
9f578b3270
Merge pull request #3504 from BrokenEagle/fix-3494
...
Fix how cosplay tags are handled
2018-01-18 12:47:02 -08:00
BrokenEagle
f626c7ebd7
Fix how cosplay tags are handled
2018-01-15 18:01:06 -08:00
Albert Yi
dfd343f70e
Merge pull request #3496 from BrokenEagle/feat-mod-action-event-ids
...
Add categories to mod actions
2018-01-15 11:09:38 -08:00
BrokenEagle
3c45273694
Add category for mod actions
2018-01-13 20:55:52 -08:00
r888888888
1a7bfca9bd
fix reference to config.image_server_host
2018-01-04 13:10:15 -08:00
r888888888
b60f4d62fd
delegate post url generation to config
2018-01-04 13:06:52 -08:00
r888888888
af6ab74f8d
support dedicated image servers
2018-01-03 13:32:50 -08:00
evazion
3e936748c0
Fix #3468 : Approval queue should not show one's own uploads or previous approvals.
2017-12-28 19:36:37 -06:00
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