@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add image size to thumbnails in Remarkup

Test Plan:
View preview of comment with `{F10662}`.
Search for `>getThumb`.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin

Differential Revision: https://secure.phabricator.com/D2347

vrana 4f9e5323 1dcc0064

+9 -8
+9 -8
src/infrastructure/markup/remarkup/markuprule/embedobject/PhabricatorRemarkupRuleEmbedFile.php
··· 68 68 return $this->getEngine()->storeText($link); 69 69 } 70 70 71 + $attrs = array( 72 + 'class' => 'phabricator-remarkup-embed-image', 73 + ); 74 + 71 75 switch ($options['size']) { 72 76 case 'full': 73 - $src_uri = $file->getBestURI(); 77 + $attrs['src'] = $file->getBestURI(); 74 78 $link = null; 75 79 break; 76 80 case 'thumb': 77 81 default: 78 - $src_uri = $file->getThumb160x120URI(); 82 + $attrs['src'] = $file->getThumb160x120URI(); 83 + $attrs['width'] = 160; 84 + $attrs['height'] = 120; 79 85 $link = $file->getBestURI(); 80 86 break; 81 87 } 82 88 83 - $embed = phutil_render_tag( 84 - 'img', 85 - array( 86 - 'src' => $src_uri, 87 - 'class' => 'phabricator-remarkup-embed-image', 88 - )); 89 + $embed = phutil_render_tag('img', $attrs); 89 90 90 91 if ($link) { 91 92 $embed = phutil_render_tag(