yusuketk 5 лет назад
Родитель
Сommit
0c71c860f1

+ 1 - 0
src/client/js/services/CommentContainer.js

@@ -63,6 +63,7 @@ export default class CommentContainer extends Container {
    * Load data of comments and store them in state
    */
   retrieveComments() {
+    // [TODO][GW - 1942] add method for updating imageUrlCached
     const { pageId } = this.getPageContainer().state;
 
     // get data (desc order array)

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

@@ -91,6 +91,7 @@ export default class PageContainer extends Container {
     }
 
     const seenUserListElem = document.getElementById('seen-user-list');
+    // [TODO][GW - 1942] add method for updating imageUrlCached and populate
     if (seenUserListElem != null) {
       const userIdsStr = seenUserListElem.dataset.userIds;
       this.state.seenUserIds = userIdsStr.split(',');

+ 1 - 0
src/server/service/passport.js

@@ -854,6 +854,7 @@ class PassportService {
         if (user == null) {
           throw new Error('user not found');
         }
+       // [TODO][GW - 1942] add method for updating imageUrlCached
         done(null, user);
       }
       catch (err) {

+ 0 - 2
src/server/views/layout-growi/widget/header.html

@@ -19,7 +19,6 @@
         <li>
           <div class="d-flex align-items-center not-affix">
             <a class="m-r-5" href="{{ userPageRoot(page.creator) }}" data-toggle="tooltip" data-placement="bottom" title="{{ page.creator.name|default(author.name) }}">
-              <!-- [TODO][GW-1942] add method for updating imageUrlCached -->
               <img src="{{ page.creator.imageUrlCached|default(author.imageUrlCached) }}" class="picture img-circle">
             </a>
             <div>
@@ -29,7 +28,6 @@
           </div>
           <div class="d-flex align-items-center only-affix">
             <a class="m-r-5" href="{{ userPageRoot(page.creator) }}" data-toggle="tooltip" data-placement="bottom" title="{{ page.creator.name|default(author.name) }}">
-              <!-- [TODO][GW-1942] add method for updating imageUrlCached -->
               <img src="{{ page.creator.imageUrlCached|default(author.imageUrlCached) }}" class="picture picture-xs img-circle">
             </a>
             <div class="ml-auto">

+ 0 - 1
src/server/views/widget/page_list.html

@@ -8,7 +8,6 @@
 {% endif %}
 
 <li>
-  <!-- [TODO][GW-1942] add method for updating imageUrlCached -->
   <img src="{{ page.lastUpdateUser.imageUrlCached }}" class="picture img-circle">
   <a href="{{ page.path }}"
     class="page-list-link"

+ 0 - 1
src/server/views/widget/user_page_header.html

@@ -4,7 +4,6 @@
     <h4 id="revision-path"></h4>
 
     <div class="users-info d-flex align-items-center">
-    <!-- [TODO][GW-1942] add method for updating imageUrlCached -->
       <img src="{{ pageUser.imageUrlCached }}" class="picture img-circle">
       <div class="users-meta" style="flex: 1;">
         <div class="d-flex align-items-center">