Commit Graph
7127 Commits
Author SHA1 Message Date
evazion 19bda2056c tags: update category cache whenever category changes.
Do `update_category_cache_for_all` in a callback instead of calling it
manually everywhere.
2017-12-23 13:07:23 -06:00
evazion 265377bdbb Fix #3450: Aliased tags show up under translated tags.
Resolves aliases in translated tags. For example, say we lookup `遠坂凛`
and find `tohsaka_rin` and `toosaka_rin`. We apply aliases so that
`tohsaka_rin` becomes `toosaka_rin`, which is then returned as the only
translated tag.
2017-12-23 12:27:58 -06:00
evazion 6243cc8d48 Fix invalid routes for /posts, /explore/posts.
Fixes these invalid routes:

* GET http://danbooru.donmai.us/posts/new
* GET http://danbooru.donmai.us/posts/1234/edit
* POST http://danbooru.donmai.us/posts
* DELETE http://danbooru.donmai.us/posts
* GET http://danbooru.donmai.us/explore/posts
2017-12-23 11:31:12 -06:00
evazion 806513836b Fix failbooru in /users/custom_style.css when custom_style is nil.
http://danbooru.donmai.us/users/custom_style.css failed when manually
requested by anonymous users, or by users who didn't have a style set.
2017-12-23 11:11:50 -06:00
evazion 20b84578a2 Fix "The action 'show' could not be found for FavoritesController"
Fixes an exception on "/favorites/1234" requests.
2017-12-23 00:56:40 -06:00
evazion 5975152ddc Fix double render error in /blah.js. 2017-12-23 00:45:07 -06:00
r888888888 461ddbf017 fixes #3422 2017-12-21 11:33:23 -08:00
Albert Yi 796a83d7cf Merge pull request #3447 from evazion/fix-3443
Fix failure in `rake db:migrate` on fresh install (#3443).
2017-12-21 11:21:50 -08:00
Albert Yi 5bc3c677d1 Merge pull request #3446 from BrokenEagle/fix-validator-addtag-cutoffs
Fix cutoff for what is considered an added tag
2017-12-21 11:21:26 -08:00
r888888888 5177829aff revert twitter source change 2017-12-21 10:58:28 -08:00
BrokenEagle 7af1391902 Add autocomplete to wiki page versions 2017-12-21 10:25:16 -08:00
BrokenEagle a973415139 Fixed cutoff for what is considered an added tag 2017-12-21 10:10:13 -08:00
evazion fcec99405c Fix failure in rake db:migrate on fresh install (#3443).
Create the DanbooruBot account in db/seeds.rb instead of in an
initializer. Move the old db/seeds.rb to db/populate.rb.

Fixes a bug introduced in e2eb45a. Creating DanbooruBot in an
initializer was wrong because in a fresh install the users table doesn't
exist yet. This caused `rake db:migrate` to fail.
2017-12-21 12:08:08 -06:00
Albert Yi b48d5e59ad Merge pull request #3445 from BrokenEagle/fix-3444
Fix #3444: Add validation warning for non-general/meta tags
2017-12-20 17:26:17 -08:00
BrokenEagle b2598b7966 Add validation warning for non-general/meta tags 2017-12-20 08:58:04 -08:00
Albert Yi a72e708d17 Merge pull request #3436 from BrokenEagle/feat-public-favgroups
Give option to make favorite groups public
2017-12-19 15:56:13 -08:00
Albert Yi dc744726b6 Merge pull request #3442 from evazion/fix-3440
Fix #3440: Implications aren't applied to automatic tags.
2017-12-19 15:50:36 -08:00
Albert Yi 9094deb140 Merge pull request #3441 from evazion/fix-3438
Fix #3438: Thumbnails on user profiles don't respect safe mode.
2017-12-19 15:49:38 -08:00
Albert Yi 7af5b133c4 Merge branch 'master' into feat-public-favgroups 2017-12-19 15:42:56 -08:00
Albert Yi a1985a9ca2 Merge pull request #3435 from evazion/fix-3324
Fix #3324: Incorporate replacement comment info in the replacement history
2017-12-19 15:02:06 -08:00
r888888888 87d3da95b1 add test case for RelatedTagQuery#other_wiki_category_tags 2017-12-19 13:02:44 -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
evazion b711566c14 Fix #3438: Thumbnails on user profiles don't respect safe mode. 2017-12-19 13:58:41 -06:00
Albert Yi b973e97648 Merge pull request #3434 from BrokenEagle/feat-copyright-other-wikis
Add character list wikis to copyright related tag response
2017-12-19 11:37:46 -08:00
BrokenEagle 5a602c60eb Added option to make favorite groups public 2017-12-18 17:30:02 -08:00
evazion 4b5129d447 lib/tasks/images.rake: fix bad ref to danbooru_image_resizer.
Fixup for efeaad25.
2017-12-18 18:08:41 -06:00
evazion fa941e9480 /post_replacements: allow updating image metadata in past replacements. 2017-12-18 18:03:03 -06:00
evazion e6acd6f2d6 /post_replacements: list old and new md5 and image sizes. 2017-12-18 18:03:03 -06:00
evazion eede2f0752 Fix #3324: Incorporate replacement comment info in the replacement history. 2017-12-18 18:02:43 -06:00
BrokenEagle 118fd3baf4 Added list_of_* wikis to copyright related tag response 2017-12-18 15:36:08 -08:00
Albert Yi f5cb49d9bf Merge pull request #3433 from BrokenEagle/fix-fav-privacy
Fix incorrect showing of favorites and favorite groups with privacy settings enabled
2017-12-18 14:58:54 -08:00
BrokenEagle 3b1fdc8cde Fixed incorrect showing of favorite groups 2017-12-18 12:17:18 -08:00
BrokenEagle 26c168bdcd Fixed incorrect showing of favorites
- Moved all favorite checking logic to same file
2017-12-18 12:17:17 -08:00
Albert Yi fb6d692c37 Merge pull request #3429 from evazion/fix-bogus-find-artist
Fix #2696: Bogus results on non-matching URL searches for Artists
2017-12-18 10:28:32 -08:00
Albert Yi b785bcf5e4 Merge pull request #3432 from evazion/fix-lib-to-logical
Move lib/danbooru, lib/danbooru_image_resizer to app/logical.
2017-12-18 10:27:24 -08:00
evazion efeaad25ca Move lib/danbooru, lib/danbooru_image_resizer to app/logical. 2017-12-18 12:07:52 -06:00
Albert Yi 53c351ab71 Merge pull request #3431 from evazion/feat-extend-search-params
Fix #3430: Accept the search[id] param in all controllers
2017-12-18 09:54:21 -08:00
evazion 859fe99a80 Fix #2696: Bogus results on non-matching URL searches for Artists 2017-12-17 21:00:34 -06:00
evazion 2a876991da Accept search[created_at] and search[updated_at] params in all controllers. 2017-12-17 17:37:26 -06:00
evazion 0ca726802f Fix #3430: Accept the search[id] param in all controllers.
* Allow every controller to take the `search[id]` param.

* Parse the `search[id]` param the same way that the `id:<N>` metatag is
  parsed. So `search[id]=1,2,3`, `search[id]=<42`, `search[id]=1..10`, for
  example, are all accepted.
2017-12-17 17:36:52 -06:00
evazion 86936f7200 Artist#find_all_by_url: refactor hardcoded bogus urls to blacklist. 2017-12-17 14:14:21 -06:00
evazion 49577e3fac /static/bookmarklet: add note using bookmarklet on Twitter with Firefox.
In Firefox, to use the bookmarklet on Twitter you must install version
1.1.3 of the Bookmarklets Context Menu addon. See https://danbooru.donmai.us/forum_topics/14794.
2017-12-16 12:59:02 -06:00
Albert Yi f8f353da0c Merge pull request #3427 from evazion/feat-autoban-spammers
Fix #3408: More automated measures against spammers
2017-12-15 17:48:22 -08:00
r888888888 b5d72ae8d8 fixes #3422 2017-12-15 17:21:33 -08:00
evazion 002b5e385a Autoban dmail spambots (#3408).
If a user sends spam to more than 10 users within a 24 hour window,
automatically ban them for 3 days.
2017-12-15 19:14:27 -06:00
evazion e2eb45a5a3 Auto-promote DanbooruBot to Mod. Auto-create DanbooruBot if it doesn't exist. 2017-12-15 18:54:18 -06:00
evazion b48211cd4a dmails: only spam check recipient's copy of the dmail.
Each dmail creates two copies, one for the sender and one for the
receiver. Only spam check the receiver's copy.

Prevents senders from being able to tell when their messages are being
spam filtered.
2017-12-15 18:54:18 -06:00
r888888888 eab63daa29 update newrelic gem 2017-12-15 13:56:05 -08:00
r888888888 4d279cd16a Revert "hide embedded notes option"
This reverts commit b361809489.
2017-12-15 13:53:03 -08:00
r888888888 a95af95eae move desktop mode to user pref 2017-12-15 13:52:25 -08:00