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

fix updatePost service to work for comments like it used to #324

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

ngottlieb
Copy link
Contributor

the photo upload changes to updatePost ended up breaking comments, which use that code without photos (since COMMENT is another type of post).

This fixes that, resolves https://github.com/AmericanWhitewater/wh2o/issues/2141

Ideally these should be entirely separate chunks of code but I'm not sure exactly how photo upload is going to evolve right now and these changes allow both, as they are currently, to continue working, so despite it being a little confusing I thought this would be easier than a bigger refactor with unknown future requirements.

Copy link
Member

@ryangroth5 ryangroth5 left a comment

Choose a reason for hiding this comment

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

This looks good. My plan is to overhaul the photos as soon as gauges are tackled, so we can go back to the old behavior and pull photo out.

@ngottlieb ngottlieb merged commit a89bc4e into development Feb 3, 2021
@ngottlieb ngottlieb deleted the bug/new-comment-not-working branch February 3, 2021 15:05
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.

2 participants