|
|
@@ -101,9 +101,15 @@ export default class PageContainer extends Container {
|
|
|
interceptorManager.addInterceptor(new DrawioInterceptor(appContainer), 20);
|
|
|
interceptorManager.addInterceptor(new RestoreCodeBlockInterceptor(appContainer), 900); // process as late as possible
|
|
|
|
|
|
- this.retrieveSeenUsers();
|
|
|
this.initStateMarkdown();
|
|
|
- this.initStateOthers();
|
|
|
+ this.checkAndUpdateImageUrlCached(this.state.likerUsers);
|
|
|
+
|
|
|
+ // skip if shared page
|
|
|
+ if (this.state.shareLinkId == null) {
|
|
|
+ this.retrieveSeenUsers();
|
|
|
+ this.retrieveLikeInfo();
|
|
|
+ this.retrieveBookmarkInfo();
|
|
|
+ }
|
|
|
|
|
|
this.setTocHtml = this.setTocHtml.bind(this);
|
|
|
this.save = this.save.bind(this);
|
|
|
@@ -155,13 +161,6 @@ export default class PageContainer extends Container {
|
|
|
this.checkAndUpdateImageUrlCached(users);
|
|
|
}
|
|
|
|
|
|
- async initStateOthers() {
|
|
|
-
|
|
|
- this.retrieveLikeInfo();
|
|
|
- this.retrieveBookmarkInfo();
|
|
|
- this.checkAndUpdateImageUrlCached(this.state.likerUsers);
|
|
|
- }
|
|
|
-
|
|
|
async retrieveLikeInfo() {
|
|
|
const like = await this.appContainer.apiv3Get('/page/like-info', { _id: this.state.pageId });
|
|
|
this.setState({
|