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.
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.