Add authenticated check for fetching subscribed status.

This commit is contained in:
FireMasterK 2021-07-21 02:13:03 +05:30
parent fca4d88202
commit a3c07a905b
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

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",