-
Notifications
You must be signed in to change notification settings - Fork 152
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
Can't remove header image from profile #345
Comments
Honestly: Really good question. I don't know offhand how to do it. I'm at work right now, but I'll have a look at this once I get back home. Could be an oversight on my part, or an oversight on the mastodon side. The web UI uses an internal endpoint to delete the header that is not part of the API proper, POST-ing to "/settings/profile/pictures/header", the API docs for https://docs.joinmastodon.org/methods/accounts/#update_credentials don't specify a value that you might send as the new header to delete it. I will mess around a bit later today to see if I can figure it out. Maybe it is possible to send a null value as multipart/form-data and that will make Mastodon do the intended thing, in which case I'd have to update the method to allow that type of thing, probably with a new parameter like "delete_header" / "delete_avatar". |
Hi there. Any luck with your attempt? |
Hey - sorry, I got distracted working on other parts of the codebase, and now I am busy with working on something else entirely. I will look at this again when I get back to trying to build the next release of Mastodon.py, but probably it will take at least a month before i get back to this. Anyone else is welcome to have a look in the meantime, obviously. |
This isn't currently possible, mastodon bug: mastodon/mastodon#18921 |
mastodon 4.2.0 now has DELETE /api/v1/profile/avatar and DELETE /api/v1/profile/header |
Excellent news! Thanks a lot. |
I can't figure out out to remove the header image from a profile. I could not find anything in the documentation about it.
I tried using
but it does nothing (BTW, ChatGPT is positive that this is the way to do it).
I also tried
But this throws an exception "Could not determine mime type or data passed directly without mime type"
The text was updated successfully, but these errors were encountered: