Explorar o código

check current user

itizawa %!s(int64=5) %!d(string=hai) anos
pai
achega
f6709ccec0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/client/js/services/PageContainer.js

+ 3 - 1
src/client/js/services/PageContainer.js

@@ -104,8 +104,10 @@ export default class PageContainer extends Container {
     this.initStateMarkdown();
     this.checkAndUpdateImageUrlCached(this.state.likerUsers);
 
+    const { currentUser } = this.appContainer;
+
     // skip if shared page or new page
-    if (this.state.shareLinkId == null && this.state.pageId != null) {
+    if (currentUser != null && this.state.pageId != null) {
       this.retrieveSeenUsers();
       this.retrieveLikeInfo();
       this.retrieveBookmarkInfo();