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

rework media processing a little bit #191

Merged
merged 2 commits into from Sep 4, 2021
Merged

Conversation

tsmethurst
Copy link
Contributor

This PR reworks some of the media processing logic by taking a minimal MediaAttachment as a parameter and fleshing that out, rather than accepting a long list of parameters like content type, account ID, etc.

This also means that more fields are preserved on inserted images, including description!

Also adds some tests for dereferencing remote attachments, and some tests for extracting values from activitypub representations of attachments.

closes #168

Copy link
Member

@NyaaaWhatsUpDoc NyaaaWhatsUpDoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

99% looks good, just the one point i mentioned :)

internal/federation/dereferencing/attachment.go Outdated Show resolved Hide resolved
@tsmethurst tsmethurst merged commit 2b14b20 into main Sep 4, 2021
@tsmethurst tsmethurst deleted the image_description_fix branch September 4, 2021 12:02
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

Successfully merging this pull request may close these issues.

[bug] Image Descriptions no longer working
2 participants