Fix loading posts that return 404 from albums

This commit is contained in:
video-prize-ranch
2022-02-08 15:37:07 -05:00
parent 5a015c48f1
commit 11e8a00c1d

View File

@@ -27,7 +27,7 @@ func FetchAlbum(albumID string) (types.Album, error) {
data := gjson.Parse(string(body))
album := types.Album{}
if data.Get("shared_with_community").Bool() {
if data.Get("shared_with_community").Bool() || res.StatusCode == 404 {
album, err = FetchPosts(albumID)
} else {
album, err = ParseAlbum(data)