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
No known key found for this signature in database
GPG Key ID: D8EAA4C5B12A7281
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

View File

@ -26,10 +26,10 @@
<span class="material-icons-outlined" title="Views">visibility</span>
<p>{{album.Views}}</p>
</div>
{{#equal album.Privacy "public"}}
{{#if album.SharedWithCommunity}}
<p><span class="material-icons-outlined" title="Likes">thumb_up</span> {{album.Upvotes}}</p>
<p><span class="material-icons-outlined" title="Dislilkes">thumb_down</span> {{album.Downvotes}}</p>
{{/equal}}
{{/if}}
</div>
<!--<div class="videoDesc__channel">
<a href="{{claim.Channel.RelUrl}}">