Commit Graph
100 Commits
Author SHA1 Message Date
nonamethanks d525df9ad5 Newgrounds: fix exception for deleted videos
Fixup for 8c0f2255f9
2022-11-11 12:28:23 +01:00
nonamethanks 8c0f2255f9 Newgrounds: fix support for some old videos 2022-11-11 11:01:13 +01:00
nonamethanks 35bfcbc3bd Newgrounds: support video uploads 2022-11-09 15:01:28 +01:00
nonamethanks d7d35cb16f Fanbox: add support for embedded videos
Fixes #5339.
2022-11-09 14:02:48 +01:00
nonamethanks 0a78a6188d Reddit: support user galleries and embedded images 2022-11-06 15:04:05 +01:00
nonamethanks 9f3f302328 Lofter: support another theme
Fixes #5334.
2022-11-06 00:03:15 +01:00
nonamethanks 758b14ad46 Remove superfluous site name definitions and update artist url order 2022-11-05 20:03:07 +01:00
nonamethanks fc4d620002 Add bilibili support 2022-11-04 12:11:08 +01:00
nonamethanks e294e1193e Add reddit support 2022-10-31 15:10:27 +01:00
N. Oname 61112bc9a1 Merge pull request #5285 from nonamethanks/tests
Rewrite the tests for various source strategies
2022-10-23 18:05:54 +02:00
nonamethanks f5a3a7da9f Stash: rewrite tests 2022-10-22 20:09:23 +02:00
nonamethanks ec293eec2d Plurk: rewrite tests 2022-10-22 20:04:11 +02:00
nonamethanks ca31e7a47c Users: add Contributor and Approver user levels 2022-10-21 20:52:31 +02:00
nonamethanks d1b6f30517 Docker compose: add project name to the file.
When docker compose creates the various services, it names the
containers like <projectname>-<servicename>-<id>. If
COMPOSE_PROJECT_NAME is not set and there's no name property
at the root level of the yaml, the default project name is the
current directory. This breaks the deployment from directories
with unusable names, such as C:\.

Fixes #5304.

This should not break existing installations that are pulling from
master, as long as the base folder is danbooru/ (default for git clone).
2022-10-21 18:24:30 +02:00
nonamethanks 79136d92d0 Update structure.sql to the one generated by db:migrate 2022-10-21 11:22:41 +02:00
nonamethanks 1b11321161 Pixiv Sketch: rewrite tests 2022-10-21 11:09:10 +02:00
nonamethanks ec05d21091 Docker compose: add comments and use templating 2022-10-19 21:44:03 +02:00
nonamethanks 7ebf0002cf Tags: remove aliases when deprecating a tag 2022-10-19 18:36:06 +02:00
nonamethanks 57dc0cbeca Posts: show levelblocked posts to their uploader 2022-10-19 18:07:43 +02:00
nonamethanks cadb657c5e Users: display colored usernames by default
The previous behavior can be replicated by putting the following in the
custom css:

    .user { color: var(--link-color) !important }
2022-10-19 16:52:17 +02:00
nonamethanks 72528bdcb1 Twitter: rewrite tests
Also add partial support for profile banner images.
2022-10-17 18:53:11 +02:00
nonamethanks 8008b7a5a2 Newgrounds: rewrite tests 2022-10-08 16:23:14 +02:00
nonamethanks 79a9081efa Moebooru: rewrite tests 2022-10-08 16:10:39 +02:00
nonamethanks f4b14ba23e Mastodon: rewrite tests 2022-10-08 15:55:06 +02:00
nonamethanks da46b13a64 Hentai-Foundry: rewrite tests 2022-10-07 22:22:24 +02:00
nonamethanks 1dc60feeb7 Fanbox: rewrite tests 2022-10-07 22:04:00 +02:00
nonamethanks 3c8e8ad8d9 Artstation: rewrite tests 2022-10-07 21:37:22 +02:00
nonamethanks 775326dc37 Tumblr: fix crash when uploading image links from custom domains 2022-10-01 00:26:29 +02:00
nonamethanks 1d7caf703c Lofter: support another theme and rewrite tests 2022-09-30 22:04:40 +02:00
nonamethanks d51cc17eaf Nicoseiga: rewrite tests and fix several bugs
* Fixed a bug where manga posts with a single tag would raise an error
* Fixed a bug where dic.nicovideo.jp/oekaki posts weren't uploadable due
  to SSL issues
* Added support for more manga corner cases
2022-09-29 14:37:46 +02:00
nonamethanks 5051c6649d Tumblr: parse new dashboard links 2022-09-28 17:00:08 +02:00
nonamethanks 425a905b83 tests: update tumblr tests 2022-09-15 09:48:28 +02:00
nonamethanks 67534a5482 Modqueue: remove self_upload from highlighted tags 2022-08-28 00:54:26 +02:00
nonamethanks b1ae6112bd Uploads: allow admins to bypass duration limits again 2022-06-29 21:17:39 +02:00
nonamethanks e7584c7e0a Nicoseiga: normalize oekaki links 2022-06-04 22:57:54 +02:00
nonamethanks 2fd8e9bc14 Deviantart: fix regression in 3a0a32b98a 2022-06-04 20:26:14 +02:00
nonamethanks 5932d8d3a3 BURs: don't allow edits to approved scripts
Also fix bad formatting for non-admins in BUR index
2022-06-01 14:07:30 +02:00
nonamethanks 3a0a32b98a Fix deviantart strategy to get biggest available size 2022-05-27 17:07:22 +02:00
nonamethanks c97dd8958f Tags: sort list of relationships alphabetically 2022-05-16 13:08:11 +02:00
nonamethanks dcbb2216aa Fc2: don't mark valid blog page sources as bad_source 2022-05-15 18:46:50 +02:00
nonamethanks 4eb579ebe4 Tags: show better message in edit form if tag lacks wiki 2022-05-11 20:52:55 +02:00
nonamethanks 5b8402751c Furaffinity: fix uploads for non-ascii image urls
Use Addressable::URI, which supports non-ascii urls.
2022-05-09 18:38:38 +02:00
nonamethanks 8edd5dd810 Add furaffinity support 2022-04-27 03:47:59 +02:00
nonamethanks e1b9166a56 Sources: do not use an empty else in case blocks 2022-04-22 03:53:18 +02:00
nonamethanks 3b055138ff Fix normalization for fandom sources 2022-04-22 03:27:05 +02:00
nonamethanks e6cb255a7a Foundation: fix some video posts not being extracted
Also adjusts SourceTestHelper to not autogenerate contexts, so that
tests can be launched individually.
2022-04-21 17:54:22 +02:00
nonamethanks e4a24d000f Fix regression in 7486836b0f that removed the delete button from pending posts 2022-04-20 19:33:17 +02:00
nonamethanks 234ac98640 Posts: don't try to ban/unban a post that is already banned/unbanned 2022-04-19 21:40:47 +02:00
nonamethanks c5e6044c23 Anifty: regex fixup for c9227645d9 2022-04-19 15:54:56 +02:00
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 c9227645d9 Add anifty.jp support 2022-04-18 16:50:26 +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