Commit Graph
100 Commits
Author SHA1 Message Date
nonamethanks 7486836b0f Readd approval button to the sidebar
The quick mod buttons are also used in the modqueue so it's not
possible to bind the shift-o shortcut to them, hence the need
for this button.
2022-04-18 19:50:35 +02:00
nonamethanks 9612578fcb Add Booth support 2022-04-16 17:52:18 +02:00
nonamethanks 70148366d9 Add source test helper 2022-04-15 23:09:27 +02:00
nonamethanks 1a990d5ab9 Allow post disapprovals to be edited 2022-04-11 21:05:44 +02:00
nonamethanks 63bd5daa3b Posts: prune disapprovals on new appeal or flag 2022-04-11 15:54:28 +02:00
nonamethanks 11281d6f58 Tags: don't allow deprecation of tags without wiki 2022-04-09 20:16:55 +02:00
nonamethanks 0c6994f487 Add /vendor to .gitignore
This folder is created by running `bundle install`
2022-04-09 14:54:15 +02:00
nonamethanks ea76a889db Add ability to mark tags as deprecated
* Deprecated tags can't be added to posts, but existing deprecated tags
  in a post won't be removed
* Only empty tags can be marked as deprecated manually
* No tags can be manually undeprecated
** These limits don't apply to admins
* Deprecating or undeprecating a tag will create a new mod action to
  prevent people from going rogue
* Added deprecate/undeprecate commands for BURs
* Deprecating a tag via BUR removes all implications to and from it as well
2022-04-08 09:07:14 +02:00
nonamethanks 38bd487e6b Fantia: use non-transparent site icon 2022-03-22 19:17:35 +01:00
nonamethanks 5b5f61c2ea Modqueue: support variable size thumbnails 2022-03-10 20:39:45 +01:00
nonamethanks a6549bc6fe Add Fantia support
Also fixes a regression in 74fdeef10c
that stopped mastodon urls from being given the right priority.
2022-03-10 17:43:32 +01:00
nonamethanks 93adba06e5 weibo: fix typo in strategy 2022-03-10 08:31:23 +01:00
nonamethanks c9be77d1f8 Weibo: fix exception for deleted url 2022-03-09 05:31:38 +01:00
nonamethanks ff6bfff311 Lofter: simplify tag extraction logic
Now that we have a separate parsing class we can just use it to properly
parse tag urls as well.
2022-03-08 17:01:50 +01:00
nonamethanks ebd3670076 sources: remove redundant comments
These comments are already present under the parse blocks, so the huge
walls of text before the code are not needed anymore.
2022-03-08 16:56:00 +01:00
nonamethanks b9c7e467e5 sources: factor out Source::URL::Tumblr
Also adds support for fetching source data from direct image urls when
possible.
2022-03-08 15:06:06 +01:00
nonamethanks d8e2f2ee33 sources: factor out Source::URL::Weibo
Additionally, fixed some broken tests and changed normalization for urls
of album type to point to the mobile version instead, because they're
only visible to logged-in users.
2022-03-07 16:52:43 +01:00
nonamethanks d195d30587 Foundation: fix normalization error
Urls like https://foundation.app/@yohan1754/fso/3 would get normalized
like https://foundation.app/@foundation/foundation/3, which was wrong
because it would point to a completely different collection
2022-03-07 06:52:23 +01:00
nonamethanks a34f5f95be docker-compose: do db:seed before server start
This is needed to create DanbooruBot and enable uploads, among other
things.
2022-03-07 03:10:51 +01:00
nonamethanks 1a66feddcf Moderation Reports: deprecate the forum topic 2022-02-22 23:47:36 +01:00
nonamethanks 9ff01c1a4b Moderation Reports: add link for moderators to navbar 2022-02-14 17:22:03 +01:00
nonamethanks 1c9014a5bb Fix lofter not working with iqdb 2022-02-05 09:43:17 +01:00
nonamethanks 33db1a2761 Skeb: fix several issues with the strategy
* Fix fetching of videos
* Fix fetching of original commentary
* Fix images being returned out of order in bookmarklet
2022-01-14 21:24:48 +01:00
nonamethanks 15bd5f73b3 Fix duration check for uploads from twitter
Some twitter videos near the max duration had some stray
milliseconds that made the check fail.

For example
https://twitter.com/kivo_some_18/status/1152167154059321344?s=20 (nsfw)
has 140.053333 duration.
2021-12-29 14:25:14 +01:00
nonamethanks 524eacf4b9 SpamDetector: raise autoban duration to 100 years.
This is to match the max duration usable by mods in the site.
The previous value of 999_999 seconds only amounted to 11 days.
2021-11-22 18:29:46 +01:00
nonamethanks 41f9fde2e0 Fix foundation urls not working with iqdb 2021-11-15 10:10:49 +01:00
nonamethanks 49e232f2ae Foundation: add support for unconventional account names 2021-11-09 13:35:52 +01:00
nonamethanks 6c9b49c194 Foundation: add support for videos 2021-11-05 09:43:49 +01:00
nonamethanks 060223c9e2 Add Plurk support 2021-11-01 16:21:27 +01:00
nonamethanks 043f2fb124 Add Foundation support 2021-11-01 01:39:56 +01:00
nonamethanks 5946544f71 Lofter: Add support for additional theme 2021-10-30 17:22:45 +02:00
nonamethanks d6daec8918 Autotag the meme tag on posts with *_(meme) tags 2021-10-06 18:06:46 +02:00
nonamethanks 45313c56a6 Lofter: fix tag extraction 2021-10-04 14:21:07 +02:00
nonamethanks 13741d88b5 Add million scale to humanized number helper 2021-09-30 14:14:40 +02:00
nonamethanks 16f76fe396 Update artist finder blacklist 2021-09-24 14:50:19 +02:00
nonamethanks ce8c8e1ab7 Posts: stop autotagging long_image 2021-09-22 11:16:52 +02:00
nonamethanks a845477cba Sources: fix artist_name not being caught in skeb and weibo 2021-09-14 11:32:24 +02:00
nonamethanks 9a6a6e52ea Lofter: raise timeout for file download 2021-09-10 13:10:29 +02:00
nonamethanks 7b817b0a30 Uploads: prevent submission of unfinished uploads 2021-09-08 20:26:53 -05:00
nonamethanks 08234c496d Fix url fields in forms not having the same length as other text inputs 2021-08-26 13:32:16 +02:00
nonamethanks 0ddac45160 Mass updates: make the destination search clickable 2021-08-15 02:16:57 -05:00
nonamethanks f60fce614b Fix lofter strategy due to changes in their image urls 2021-08-15 02:16:57 -05:00
nonamethanks 2a13667422 Tag nuke: remove implications to a tag before nuking it 2021-08-15 02:16:57 -05:00
nonamethanks 539af4421d IQDB direct url lookup: send the thumbnail instead of the full size 2021-08-15 02:16:57 -05:00
nonamethanks d469b87ae2 Fix link to rest of user's post disapprovals 2021-08-15 02:16:57 -05:00
nonamethanks bb4bdefc23 Lofter: add support for another theme 2021-08-15 02:16:56 -05:00
nonamethanks 716b9a5b88 Add utility links to user events from user page 2021-08-15 02:16:56 -05:00
nonamethanks dddf21df92 Fix broken link to howto:pools in /pools/new 2021-08-15 02:16:56 -05:00
nonamethanks b4b80b9618 Forum link search: also include BURs 2021-08-15 02:16:56 -05:00
nonamethanks 606b311841 Fix skeb strategy 2021-08-15 02:16:56 -05:00
nonamethanks 3f4174a917 Favgroups: only add shortcuts for first 10 groups 2021-08-15 02:16:56 -05:00
nonamethanks bea03b7dc6 Upload page: show artist tag if it exists even if artist_name is empty in source 2021-08-15 02:16:56 -05:00
nonamethanks e9d845e7cc Update site map 2021-08-15 02:16:56 -05:00
nonamethanks b7c73d7c9d Add post disapprovals to available includes 2021-06-21 21:12:00 +02:00
nonamethanks 66e6d235c1 Posts sidebar: add link to tag discussions in forums 2021-06-21 16:42:38 +02:00
nonamethanks 6f78bae7c6 Quote different disapproval reasons to separate them 2021-06-21 14:09:06 +02:00
nonamethanks 89c14717ec Upload page: disallow swf uploads in javascript too 2021-06-21 03:32:16 +02:00
nonamethanks 09f671fb72 Fix text in batch bookmarklet 2021-06-19 17:01:05 +02:00
nonamethanks 9a49a257e1 Reorder feedback type dropdown search 2021-06-04 15:45:00 +02:00
nonamethanks 90823d7ee1 BUR individual page: show link to forum, not topic, if it exists 2021-06-02 23:58:51 +02:00
nonamethanks ac4b4a151c Weibo: fix new lengthier image urls breaking the batch bookmarklet 2021-05-31 00:36:53 +02:00
nonamethanks 1234d93292 Nijie: get correct image when using bookmarklet 2021-05-25 12:20:39 +02:00
nonamethanks b7fa8027a5 BUR: add link to wiki help page in navbar 2021-05-24 16:31:23 +02:00
nonamethanks ac071b147f Lofter: fix strategy for additional type of html theme 2021-05-23 18:05:16 +02:00
nonamethanks bc4fd16c2c Add Lofter support 2021-05-19 16:40:33 +02:00
nonamethanks 1bc266a3db Skeb: add support for multi-image posts and fix tests 2021-05-16 12:50:39 +02:00
nonamethanks e95731d58f Skeb: fix broken strategy 2021-05-04 21:18:12 +02:00
nonamethanks cb6196c259 Nicoseiga: auto-add spoiler tags to commentary 2021-04-06 14:08:49 +02:00
nonamethanks cda1f64d89 Tag implications: fix typo in validate error 2021-03-28 14:21:18 +02:00
nonamethanks e7e0c2314d Add embed wiki to delete dialog 2021-03-20 05:45:34 +01:00
nonamethanks 917b08639f Tag Aliases: automatically remove redundant implications 2021-03-19 15:38:47 +01:00
nonamethanks 073f63cfa7 Pixiv: don't add auto-generated usernames to the other names field 2021-03-16 02:44:49 +01:00
nonamethanks 0cae2e75b9 Artist finder: add skeb.jp root to blacklist 2021-03-14 04:13:55 +01:00
nonamethanks ce86f6d274 User profiles: use name instead of id in links to post edits 2021-03-12 03:10:44 +01:00
nonamethanks 7dd83a12e2 BURs: don't check for category when implicating empty tags
The default category for empty tags is general, so implications are otherwise
always going to be rejected when the tag is created via BUR beforehand.

Ref: https://danbooru.donmai.us/forum_topics/18013?page=2#forum_post_182107
2021-03-11 17:58:02 +01:00
nonamethanks a123bf0ee8 Mastodon: fix strategy not working for direct or dead links 2021-03-09 22:35:36 +01:00
nonamethanks a4ae07416a Optimize Sources::Strategies.find()
Use lazy.map instead of map, so that we do not run every single
strategy's match method for every source
2021-03-07 18:20:10 +01:00
nonamethanks 4118a3f3c9 Baraag: fix image regex
Fixes a bug for Baraag.net that caused the batch bookmarklet to always pick the first picture in multi-image posts.
2021-03-06 08:50:08 +01:00
nonamethanks dc97f4483b Add skeb support 2021-03-04 21:53:27 +01:00
nonamethanks e75489aa94 Twitter: update common hashtag regexes 2021-03-02 17:05:47 +01:00
nonamethanks ba826ff6fa Sources: get correct mastodon page url 2021-02-26 19:45:01 +01:00
nonamethanks 4a4053d2d7 Updates the BUR form to reference the new commands 2021-02-19 00:46:31 +01:00
nonamethanks 877be220f6 Fix ordering of user levels in user search 2021-02-17 00:40:06 +01:00
nonamethanks 182d4e1927 Don't mark cosplay/style tags as low post count 2021-02-15 20:05:51 +01:00
nonamethanks ffe8f8c92d Add baraag.net support 2021-02-15 13:51:52 +01:00
nonamethanks 5366b0781e Convert pawoo strategy to mastodon 2021-02-15 13:51:49 +01:00
nonamethanks 482c1e4c7c Fanbox: fix tests and image ordering
* fix the test for R18 posts, which are now supported
* replace the dead post for the imageMap test with an active one
* fix the ordering of images: it was possible to get the wrong image in
some cases when not using the batch bookmarklet, because of how fanbox
orders imageMap posts
* fix a bug where the sample wasn't properly replaced with the full
size
* rename test file to match the rest of the other files
2021-02-10 16:53:22 +01:00
nonamethanks 7c825a932d IP Bans: format reason via dtext 2021-02-07 18:15:45 +01:00
nonamethanks b47f242de3 Fix page title in case of no copyright tag 2021-02-07 18:10:37 +01:00
nonamethanks 873eba8898 User samples for mods: use global post limit 2021-02-07 18:01:00 +01:00
nonamethanks efa20d8e53 Post sidebar: ignore metatags for the tag history link 2021-02-01 19:02:54 +01:00
nonamethanks b3f92dd2c7 Fix gelbooru source normalization 2021-01-03 20:12:40 +01:00
nonamethanks 2423c8a447 Weibo: use proxy for upload previews 2020-12-21 15:28:28 +01:00
nonamethanks 3801e08ae6 Update pixiv url matching tests 2020-12-16 13:53:16 +01:00
nonamethanks 25682ebf46 Blacklist baraag.net root from artist finder 2020-12-16 13:43:50 +01:00
nonamethanks 6b966689b0 Blacklist pixiv en urls from artist finder 2020-12-16 13:42:25 +01:00
nonamethanks 26a6335c41 Uploads: get rid of same-source existence check
Remove the lines that checked for existing upload with the same source.
These lines were breaking replacements in many cases, so we had to
always empty the post's source before replacing, and they served no
purpose since the md5 check already catches duplicate uploads.
2020-12-14 16:41:06 +01:00
nonamethanks 7464446f64 Post replacements: fix replacement message
It's incorrect to say that a new image was used, since we also host
videos. See for example https://danbooru.donmai.us/posts/3114352
2020-12-09 10:01:24 +01:00
nonamethanks 4070354322 Return empty search for ordfav of fake user 2020-12-04 01:03:34 +01:00
nonamethanks 32f4cb1236 Fix blog.fc2 urls matching wrong artists 2020-12-04 00:17:02 +01:00