The goal of this PR is to fix a problem with creating new posts where the assetIds are null.
Closes #29
Solution
AssetsService, which handles the upload of assets, was returning a string[] which was being interpreted as undefined. The code was changed so that AssetsService::create() returns the UploadAssetResponse and the rest of the code can correctly interpret the assetIds and then the images will show in the posts correctly.
with @saraswatpuneet
Steps to Verify
Create a new post with an attached image.
Verify that the post shows in the feed with a link to the image.
Purpose
The goal of this PR is to fix a problem with creating new posts where the
assetIds
arenull
.Closes #29
Solution
AssetsService, which handles the upload of assets, was returning a
string[]
which was being interpreted asundefined
. The code was changed so thatAssetsService::create()
returns theUploadAssetResponse
and the rest of the code can correctly interpret theassetIds
and then the images will show in the posts correctly.with @saraswatpuneet
Steps to Verify