Skip to content
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

Allow photo/media uploads in replies and reposts #100

Closed
gijswijs opened this issue May 13, 2022 · 6 comments
Closed

Allow photo/media uploads in replies and reposts #100

gijswijs opened this issue May 13, 2022 · 6 comments

Comments

@gijswijs
Copy link

Replies and reposts can contain photos too.

It would be appreciated if micropublish would allow for photos to be added to these type of posts too.

@barryf
Copy link
Owner

barryf commented May 13, 2022

By default Micropublish doesn't expose the photo field for those two post types, but it's possible to do this via your Micropub server. If your endpoint responds to a ?q=post-types request with the properties you want to use, the interface will be customised.

This is currently an unofficial Micropub extension and may change, but I use it with my server. Here's my example with the expected format: https://github.com/barryf/vibrancy/blob/master/src/http/get-micropub/config/post-types.js

@gijswijs
Copy link
Author

But https://micropublish.net doesn't request that endpoint right now, am I right?

@barryf
Copy link
Owner

barryf commented May 13, 2022

I've checked and it's actually looking for post-types in the config query from your endpoint.

@gijswijs
Copy link
Author

Ah, that makes sense. I only implemented the post-types query response, but now I also return post-types inside the config response. After logging out and logging in again, it indeed seems to work!
image

@barryf
Copy link
Owner

barryf commented May 17, 2022

Thanks for the screenshot - it's nice to see how you've configured it 😄

@gijswijs
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants