Skip to content
Permalink
Browse files

fix(embed): Inserting medium thumbnail size again instead of small on…

… embedding images
  • Loading branch information...
iionly committed Jan 21, 2017
1 parent 273ab5e commit aea45030e3618b5c449f5294cc8d18ec40fb01a0
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/embed/views/default/elgg/embed.js
@@ -53,8 +53,10 @@ define(function (require) {
var value = textArea.val();
var result = textArea.val();
// this is a temporary work-around for #3971
if (content.indexOf('thumbnail.php') != -1) {
content = content.replace('size=small', 'size=medium');
if (content.indexOf('/serve-icon/') != -1) {
content = content.replace(/\/serve-icon\/[0-9]*\/small/g, function replacer(match) {
return match.replace('small', 'medium');
});
}

textArea.focus();

0 comments on commit aea4503

Please sign in to comment.
You can’t perform that action at this time.