mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-06-27 15:38:23 +00:00
Fix loading posts that return 404 from albums
This commit is contained in:
parent
5a015c48f1
commit
11e8a00c1d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user