Przeglądaj źródła

change used param

yusuketk 6 lat temu
rodzic
commit
c77c41dbaa

+ 0 - 1
src/server/models/bookmark.js

@@ -45,7 +45,6 @@ module.exports = function(crowi) {
     const Bookmark = this;
     const Bookmark = this;
     const User = crowi.model('User');
     const User = crowi.model('User');
 
 
-    // [TODO][user-profile-cache][GW-1775] change how to get profile image data in client side.
     return Bookmark.populate(bookmarks, {
     return Bookmark.populate(bookmarks, {
       path: 'page',
       path: 'page',
       populate: {
       populate: {

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

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