Attach first 4 image URLs to the post #47
Merged
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.
I wanted to have my images auto-attach to the Mastodon post, as I want to post more image and description only posts.
I added a new config 'include_images' to the feed config, as well as the initial questionnaire. If this is enabled,
requests
pulls down the first 4 images found in<i>
tags and uploads those as media via theMastodon.media_post(media_file, mime_type=None)
method in the Mastodon API.I, personally, am setting up two tags on my Micro.blog, so that all my posts are defined as a photos post or a blog post, and separated into two different feeds. I then have two feeds configured in my
.feediverse
file with different templates.