|
@@ -121,7 +121,7 @@ export default class PageContainer extends Container {
|
|
|
this.retrieveSeenUsers();
|
|
this.retrieveSeenUsers();
|
|
|
this.retrieveLikeInfo();
|
|
this.retrieveLikeInfo();
|
|
|
this.retrieveBookmarkInfo();
|
|
this.retrieveBookmarkInfo();
|
|
|
- this.retrieveSubscribeStatus();
|
|
|
|
|
|
|
+ this.retrieveSubscriptionStatus();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.setTocHtml = this.setTocHtml.bind(this);
|
|
this.setTocHtml = this.setTocHtml.bind(this);
|
|
@@ -305,7 +305,7 @@ export default class PageContainer extends Container {
|
|
|
return this.retrieveBookmarkInfo();
|
|
return this.retrieveBookmarkInfo();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- async retrieveSubscribeStatus() {
|
|
|
|
|
|
|
+ async retrieveSubscriptionStatus() {
|
|
|
const res = await this.appContainer.apiv3Get('/page/subscribe/status', { pageId: this.state.pageId });
|
|
const res = await this.appContainer.apiv3Get('/page/subscribe/status', { pageId: this.state.pageId });
|
|
|
this.setState({ isSubscribing: res.data.subscribing });
|
|
this.setState({ isSubscribing: res.data.subscribing });
|
|
|
}
|
|
}
|
|
@@ -313,7 +313,7 @@ export default class PageContainer extends Container {
|
|
|
async toggleSubscribe() {
|
|
async toggleSubscribe() {
|
|
|
const bool = !this.state.isSubscribing;
|
|
const bool = !this.state.isSubscribing;
|
|
|
await this.appContainer.apiv3Put('page/subscribe', { pageId: this.state.pageId, status: bool });
|
|
await this.appContainer.apiv3Put('page/subscribe', { pageId: this.state.pageId, status: bool });
|
|
|
- return this.retrieveSubscribeStatus();
|
|
|
|
|
|
|
+ return this.retrieveSubscriptionStatus();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async checkAndUpdateImageUrlCached(users) {
|
|
async checkAndUpdateImageUrlCached(users) {
|