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
No known key found for this signature in database
GPG Key ID: D8EAA4C5B12A7281
1 changed files with 1 additions and 1 deletions

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)