Commit Graph
90 Commits
Author SHA1 Message Date
nonamethanks 16f76fe396 Update artist finder blacklist 2021-09-24 14:50:19 +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
nonamethanks 04c8a9ebba Users: show appeal link and count to everyone 2020-08-17 13:55:52 +02:00
nonamethanks e3fd3f42cc Nijie: Add doujin support 2020-08-15 09:29:29 +02:00
nonamethanks 5615719218 Tumblr: support highest res for new image urls 2020-08-14 01:23:27 +02:00
nonamethanks 7c03f0d6c9 Copy annotation tags when copying notes 2020-08-12 06:21:50 +02:00
nonamethanks bc8fc1839f Upload limit: don't display progress when maxed out 2020-08-11 04:24:16 +02:00
nonamethanks 9a7a1e20ca Add fanbox support 2020-08-09 00:21:57 +02:00
nonamethanks 76b0380927 Nijie: fix login
Fixes a regression in 6e6ce6e62f
2020-07-31 23:26:35 +02:00
nonamethanks cc5037d835 Post unbans: fix typo 2020-07-25 12:47:48 +02:00
nonamethanks 3179509791 Uploads: Check if strategy is enabled before use
Avoid returning bare API tracebacks from pixiv et al when login details
are not configured, and instead raise a generic error.
2020-07-11 04:56:46 +02:00
nonamethanks 79a59e52ec Twitter: don't get api without a status id 2020-06-20 15:08:49 +02:00
nonamethanks 0a396c8b95 Revert "Pixiv: don't blacklist digital tools"
This reverts commit e83d07ea7b.

It was worth a try, but unfortunately it seems that once
someone sets tools in a Pixiv upload, they become defaults and
are applied to all of their subsequent uploads, so we get some
posts with two or three different digital tags.
2020-06-19 08:08:46 +02:00
nonamethanks 8a06d3a744 Zerochan: Normalize png links 2020-06-18 08:07:45 +02:00
nonamethanks 7a41ee9c34 Add NewGrounds support 2020-06-18 03:22:30 +02:00
nonamethanks c23fee846f Add more tags to post replacements filtering and modqueue
highlighting.
2020-06-17 07:28:22 +02:00
nonamethanks 5b186f3072 Support for new nicoseiga cdn domain 2020-06-15 04:01:34 +02:00
nonamethanks 6fc4d3ec44 Nicoseiga: Add support for drm-served manga 2020-06-15 03:37:51 +02:00
nonamethanks 260bc997f6 NicoSeiga: Add preview urls 2020-06-15 03:37:51 +02:00
nonamethanks 9f0e85e1b5 Refactor nicoseiga strategy
* Get rid of mechanize, fully switch to Danbooru::Http
* Switch to mobile api, improving speed
* Merge main and manga clients
* Add full support for manga pages
* Add support for anonymous and r-15 images
* Don't fail when attempting to upload oekaki direct links
* Various misc fixes
2020-06-15 03:37:51 +02:00
nonamethanks e83d07ea7b Pixiv: don't blacklist digital tools anymore 2020-06-12 04:15:20 +02:00
nonamethanks 25b801619f Deviantart: fix api downloads 2020-05-31 07:01:43 +02:00
nonamethanks d339947647 Weibo: add source normalization 2020-05-28 01:05:11 +02:00
nonamethanks 5c7307a1c9 Add Weibo support 2020-05-27 11:30:05 +02:00
nonamethanks 116f3a67ef Nijie: fetch full commentary rather than truncated preview 2020-05-22 02:47:19 +02:00
nonamethanks 307df3b3e4 Refactor source normalization
* Move the source normalization logic out of the post model
  and into individual sources' strategies.
* Rewrite normalization tests to be handled into each source's test,
  and expand them significantly. Previously we were only testing
  a very small subset of domains and variants.
* Fix up normalization for several sites.
* Normalize fav.me urls into normal deviantart urls.
2020-05-21 22:46:51 +02:00
nonamethanks 9724b206b0 Add hentai-foundry support 2020-05-05 21:54:34 +02:00
nonamethanks 804c87a0ea Artstation: artists can have underscores in their name 2020-04-17 01:10:23 +02:00
nonamethanks 23812aaeb5 Post#normalized_source: Normalize more twitter urls 2020-04-08 13:38:02 +02:00