mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 23:43:42 +00:00
Merge pull request #761 from vinzv/develop
resize images to 300px for frio compliance
This commit is contained in:
commit
2aa373a75d
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ function catavatar_lookup(App $a, &$b)
|
||||||
$url = $a->getBaseURL() . '/catavatar/' . $user['uid'];
|
$url = $a->getBaseURL() . '/catavatar/' . $user['uid'];
|
||||||
|
|
||||||
switch($b['size']) {
|
switch($b['size']) {
|
||||||
case 175: $url .= "/4"; break;
|
case 300: $url .= "/4"; break;
|
||||||
case 80: $url .= "/5"; break;
|
case 80: $url .= "/5"; break;
|
||||||
case 47: $url .= "/6"; break;
|
case 47: $url .= "/6"; break;
|
||||||
}
|
}
|
||||||
|
@ -245,7 +245,7 @@ function build_cat($seed = '', $size = 0)
|
||||||
if ($size > 3 && $size < 7) {
|
if ($size > 3 && $size < 7) {
|
||||||
switch ($size) {
|
switch ($size) {
|
||||||
case 4:
|
case 4:
|
||||||
$size = 175;
|
$size = 300;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
$size = 80;
|
$size = 80;
|
||||||
|
|
Loading…
Reference in a new issue