Browse Source

Limit small avatar rendering only to inline mentions

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v14.0.0beta1
Julius Härtl 5 years ago
parent
commit
6d29b36200
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      apps/comments/js/commentstabview.js

+ 5
- 1
apps/comments/js/commentstabview.js View File

@@ -386,7 +386,11 @@

_postRenderItem: function($el, editionMode) {
$el.find('.has-tooltip').tooltip();
$el.find('.avatar').each(function () {
var inlineAvatars = $el.find('.message .avatar');
if ($($el.context).hasClass('message')) {
inlineAvatars = $el.find('.avatar');
}
inlineAvatars.each(function () {
var $this = $(this);
$this.avatar($this.attr('data-username'), 16);
});

Loading…
Cancel
Save