Regression: Add missing cacheKey to mem (#17430)

pull/17453/head
Diego Sampaio 5 years ago committed by GitHub
parent 536ee971df
commit 9de05043b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/emoji-emojione/lib/rocketchat.js

@ -229,7 +229,7 @@ emojione.emojioneList[':asterisk_symbol:'] = {
return `${ m2 }<span class="emojione emojione-${ category } _${ unicode }" ${ title }>${ alt }</span>`;
}
return `${ m2 }<img class="emojione" alt="${ alt }" ${ title } src="${ ePath }${ unicode }${ ns.fileExtension }"/>`;
}, { maxAge: 1000 });
}, { maxAge: 1000, cacheKey: JSON.stringify });
ns.shortnameToImage = function(str) {
// replace regular shortnames first

Loading…
Cancel
Save