Add authenticated check for fetching subscribed status.

This commit is contained in:
FireMasterK 2021-07-21 02:13:03 +05:30
parent 7c080e986a
commit 3495bd2016

View file

@ -216,7 +216,7 @@ export default {
this.fetchComments().then(data => (this.comments = data));
},
async fetchSubscribedStatus() {
if (!this.channelId) return;
if (!this.channelId || !this.authenticated) return;
this.fetchJson(
this.apiUrl() + "/subscribed",