diff --git a/api/album.go b/api/album.go index 2635b05..9d808a9 100644 --- a/api/album.go +++ b/api/album.go @@ -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 diff --git a/views/gallery.hbs b/views/gallery.hbs index 98544c7..afa0a53 100644 --- a/views/gallery.hbs +++ b/views/gallery.hbs @@ -26,10 +26,10 @@
{{album.Views}}
- {{#equal album.Privacy "public"}} + {{#if album.SharedWithCommunity}}{{album.Upvotes}}
- {{/equal}} + {{/if}} {{album.Downvotes}}