Switch to shared_with_community
This commit is contained in:
parent
e744a94ca4
commit
fdd66853f9
|
@ -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
|
||||
|
|
|
@ -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}}">
|
||||
|
|
Loading…
Reference in New Issue