From 11e8a00c1dba647469b05bce645c70f33c8b753e Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Tue, 8 Feb 2022 15:37:07 -0500 Subject: [PATCH] Fix loading posts that return 404 from albums --- api/album.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/album.go b/api/album.go index 4060e29..9a5df14 100644 --- a/api/album.go +++ b/api/album.go @@ -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)