Switch to shared_with_community

This commit is contained in:
video-prize-ranch
2022-01-26 16:28:03 -05:00
parent e744a94ca4
commit fdd66853f9
2 changed files with 5 additions and 5 deletions

View File

@@ -27,10 +27,10 @@ func FetchAlbum(albumID string) (types.Album, error) {
data := gjson.Parse(string(body))
album := types.Album{}
if data.Get("privacy").String() == "private" {
album, err = ParseAlbum(data)
} else {
if data.Get("shared_with_community").Bool() {
album, err = FetchPosts(albumID)
} else {
album, err = ParseAlbum(data)
}
return album, err