mirror of
https://github.com/friendica/friendica
synced 2025-04-26 10:30:11 +00:00
Using CSS for custom emojis
This commit is contained in:
parent
cd2c7f782f
commit
077a96fb28
2 changed files with 7 additions and 1 deletions
|
@ -50,7 +50,8 @@ class Processor
|
|||
public static function replaceEmojis($emojis, $body)
|
||||
{
|
||||
foreach ($emojis as $emoji) {
|
||||
$body = str_replace($emoji['name'], '[img=16x16]' . $emoji['href'] . '[/img]', $body);
|
||||
$replace = '[class=emoji mastodon][img=' . $emoji['href'] . ']' . $emoji['name'] . '[/img][/class]';
|
||||
$body = str_replace($emoji['name'], $replace, $body);
|
||||
}
|
||||
return $body;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue