mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-13 19:55:21 +00:00
Fix loading posts that return 404 from albums
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user