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

Re-add raw to a photo's json. #8100

Merged
merged 3 commits into from Feb 4, 2020

Conversation

denschub
Copy link
Member

@denschub denschub commented Feb 4, 2020

This fixes the current issue with lightboxes not working.

To make sure we don't acidentially drop it again, I added raw as a required field to the schema. Unfortunately, this broke CI, as we did not expose raw for profile pictures, which do reference the same API schema.

Initially, I wanted to expose the actual raw image on the API, and I still plan on doing this, but this change turns out to be a magical journey through all parts of diaspora, and will take me a bit of time. To get the lightboxes fixed in the meantime, this PR exposes the scaled_full version as the "raw" image.

because we need it for showing the raw image in the lightbox. This got lost, as the photo extension was made after API development started.
@denschub denschub added this to the 0.8.0.0 milestone Feb 4, 2020
app/presenters/avatar_presenter.rb Outdated Show resolved Hide resolved
app/presenters/avatar_presenter.rb Outdated Show resolved Hide resolved
This is a temporary workaround. Adding the real raw photo is quite a
challange and touches multiple components nobody wants to touch right
now. As this change is blocking an actual hotfix, this is fine, and will
be properly fixed at a later time.
@denschub denschub merged commit 08d4f87 into diaspora:develop Feb 4, 2020
@denschub denschub deleted the hotfix/fix-raw-photos branch February 4, 2020 15:36
@Flaburgan
Copy link
Member

Flaburgan commented Feb 4, 2020

Should we open an issue as a follow-up to be sure to not forget about that then? @denschub maybe you want to do it as it looks like a good place to explain what you went through when beginning to do it? Thanks for that patch in any case :)

@denschub
Copy link
Member Author

denschub commented Feb 4, 2020

@Flaburgan it's high on my ToDo list - both filing the issue, and fixing it. :)

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

Successfully merging this pull request may close these issues.

None yet

4 participants