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))
|
data := gjson.Parse(string(body))
|
||||||
|
|
||||||
album := types.Album{}
|
album := types.Album{}
|
||||||
if data.Get("privacy").String() == "private" {
|
if data.Get("shared_with_community").Bool() {
|
||||||
album, err = ParseAlbum(data)
|
|
||||||
} else {
|
|
||||||
album, err = FetchPosts(albumID)
|
album, err = FetchPosts(albumID)
|
||||||
|
} else {
|
||||||
|
album, err = ParseAlbum(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
return album, err
|
return album, err
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
<span class="material-icons-outlined" title="Views">visibility</span>
|
<span class="material-icons-outlined" title="Views">visibility</span>
|
||||||
<p>{{album.Views}}</p>
|
<p>{{album.Views}}</p>
|
||||||
</div>
|
</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="Likes">thumb_up</span> {{album.Upvotes}}</p>
|
||||||
<p><span class="material-icons-outlined" title="Dislilkes">thumb_down</span> {{album.Downvotes}}</p>
|
<p><span class="material-icons-outlined" title="Dislilkes">thumb_down</span> {{album.Downvotes}}</p>
|
||||||
{{/equal}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<!--<div class="videoDesc__channel">
|
<!--<div class="videoDesc__channel">
|
||||||
<a href="{{claim.Channel.RelUrl}}">
|
<a href="{{claim.Channel.RelUrl}}">
|
||||||
|
|
Loading…
Reference in New Issue