Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: create and edit posts with attachments on Friendica #711

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

AkesiSeli
Copy link
Collaborator

Technical details

This PR fixes a bug accidentally introduced in #643 while fixing #640. Apparently, just on Friendica, you have to call different APIs to edit an image alt-text depending on whether it is a new post or an edit of an existing post. It does not matter whether the image is already uploaded to your gallery, it still behaves differently when it is attached or not to an existing post.

Additional notes

This looks like a server "bug" which is being worked around by either calling POST friendica/photo/update or PUT v1/media/:id but I imagine the backenders have some good reasons to implement this feature like this.

This PR will remain as a documentation in case someone else needs some reference.

@AkesiSeli AkesiSeli self-assigned this Jan 2, 2025
@AkesiSeli AkesiSeli linked an issue Jan 2, 2025 that may be closed by this pull request
@AkesiSeli AkesiSeli marked this pull request as draft January 2, 2025 18:00
@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
unittests 58.37% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@AkesiSeli AkesiSeli force-pushed the fix-alt-text-in-post-creation-and-edit branch from c83e0c0 to 3d44e13 Compare January 2, 2025 18:08
@AkesiSeli AkesiSeli marked this pull request as ready for review January 2, 2025 18:11
@AkesiSeli AkesiSeli merged commit f8bac05 into master Jan 2, 2025
2 checks passed
@AkesiSeli AkesiSeli deleted the fix-alt-text-in-post-creation-and-edit branch January 2, 2025 18:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image description is not recognized
2 participants