-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Untitled #1
Merged
Merged
Untitled #1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghost
mentioned this pull request
Mar 23, 2013
evazion
added a commit
that referenced
this pull request
Oct 26, 2018
evazion
added a commit
that referenced
this pull request
Sep 6, 2019
All pools containing post #1: https://danbooru.donmai.us/pools?search[post_ids_include]=1 All pools containing either post #1 or #2: https://danbooru.donmai.us/pools?search[post_ids_include]=1,2 https://danbooru.donmai.us/pools?search[post_ids_include]=1+2 Pools with 1-100 posts: https://danbooru.donmai.us/pools?search[post_id_count]=1..100 Pools with no posts (empty pools): https://danbooru.donmai.us/pools?search[post_id_count]=0
evazion
added a commit
that referenced
this pull request
Mar 13, 2024
Fix it so that post #1 doesn't show a birthday hat if it was uploaded today. Only show the birthday hat on the anniversary of the first upload. Fixes the first post always showing a birthday hat on a fresh install.
evazion
added a commit
that referenced
this pull request
Mar 21, 2024
Add the following syntax for embedding images in DText: !post #12345 !asset #12345 This will embed a 720x720 size image. You can add a caption beneath the image like this: !post #12345: This is the image caption. You can embed a gallery of thumbnails like this: * !post #1 * !post #2 * !post #3 This will embed a grid of 180x180 size thumbnails. Known issues: * Currently you can only embed images in wiki pages. There need to be limits before they can be enabled in other places so that people don't flood threads with too many images. * You can't embed images that are only visible to Gold or above users. You can only embed images that are visible to everyone. This is because making DText rendering dependent on the current user would preclude caching. It's also to discourage people from embedding images that not everyone can see. * There's no way to blacklist embedded images. (It wouldn't work anyway for media assets, unless we used AI tags). * There's no syntax for selecting the size of the image. Standalone images are always 720x720 and thumbnail galleries are always 180x180. * We always use 720x720 .webp samples for embedded images, which may not be viewable for people with ancient browsers that don't support .webp. * You can't put images inside tables (which would be necessary for Wikipedia-style infoboxes in wikis). * You can't `float: right` images (which would also be necessary for infoboxes in wikis). * Animated GIFs and PNGs load the static thumbnail instead of the animated image. We ought to generate sample videos for animated GIFs. * Videos load the original video file, which may take a lot of bandwidth, especially if there are multiple videos on the page. We ought to generate 720p or 480p samples for each video. * Video always autoplay, which may be undesirable. * Videos don't show the audio icon when the video has audio (videos with sound are muted, however). * You can't embed Flash posts. * It's technically possible to embed arbitrary images using media assets, but it's a cumbersome process.
evazion
pushed a commit
that referenced
this pull request
Apr 3, 2024
evazion
added a commit
that referenced
this pull request
Apr 3, 2024
Update all occurrences of r888888888 to danbooru
evazion
added a commit
that referenced
this pull request
Apr 3, 2024
Add the following syntax for embedding images: !asset #1 !post #1 Produces: <media-embed data-type="asset" data-id="1"></media-embed> <media-embed data-type="post" data-id="1"></media-embed> To add a caption beneath the image: !post #1: This is a caption beneath the image. Produces: <media-embed data-type="post" data-id="1">This is a caption beneath the image.</media-embed> To create a gallery of images: * !post #1: Caption one. * !post #2: Caption two. * !post #3: Caption three. Produces: <media-gallery> <media-embed data-type="post" data-id="1">Caption one.</media-embed> <media-embed data-type="post" data-id="2">Caption two.</media-embed> <media-embed data-type="post" data-id="3">Caption three.</media-embed> </media-gallery> The `!post #1` syntax has to go on a line by itself. It can't go in the middle of a paragraph, inside a header, inside a table, etc. On the Danbooru end, these tags will be written into the actual images.
evazion
added a commit
that referenced
this pull request
Apr 10, 2024
hdk5
pushed a commit
to hdk5/danbooru
that referenced
this pull request
May 20, 2024
Fix it so that post danbooru#1 doesn't show a birthday hat if it was uploaded today. Only show the birthday hat on the anniversary of the first upload. Fixes the first post always showing a birthday hat on a fresh install.
hdk5
pushed a commit
to hdk5/danbooru
that referenced
this pull request
May 20, 2024
Add the following syntax for embedding images in DText: !post #12345 !asset #12345 This will embed a 720x720 size image. You can add a caption beneath the image like this: !post #12345: This is the image caption. You can embed a gallery of thumbnails like this: * !post danbooru#1 * !post danbooru#2 * !post danbooru#3 This will embed a grid of 180x180 size thumbnails. Known issues: * Currently you can only embed images in wiki pages. There need to be limits before they can be enabled in other places so that people don't flood threads with too many images. * You can't embed images that are only visible to Gold or above users. You can only embed images that are visible to everyone. This is because making DText rendering dependent on the current user would preclude caching. It's also to discourage people from embedding images that not everyone can see. * There's no way to blacklist embedded images. (It wouldn't work anyway for media assets, unless we used AI tags). * There's no syntax for selecting the size of the image. Standalone images are always 720x720 and thumbnail galleries are always 180x180. * We always use 720x720 .webp samples for embedded images, which may not be viewable for people with ancient browsers that don't support .webp. * You can't put images inside tables (which would be necessary for Wikipedia-style infoboxes in wikis). * You can't `float: right` images (which would also be necessary for infoboxes in wikis). * Animated GIFs and PNGs load the static thumbnail instead of the animated image. We ought to generate sample videos for animated GIFs. * Videos load the original video file, which may take a lot of bandwidth, especially if there are multiple videos on the page. We ought to generate 720p or 480p samples for each video. * Video always autoplay, which may be undesirable. * Videos don't show the audio icon when the video has audio (videos with sound are muted, however). * You can't embed Flash posts. * It's technically possible to embed arbitrary images using media assets, but it's a cumbersome process.
hdk5
pushed a commit
to hdk5/danbooru
that referenced
this pull request
May 20, 2024
… to github Fix it so that text like `issue danbooru#1`, `post danbooru#1`, etc is escaped in commentaries so that it's not interpreted as DText.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Should be checking a template file rather than the yaml file into the repo