emojireaction compat
This commit is contained in:
@@ -566,6 +566,7 @@ class Activity {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
if($i['target']) {
|
||||
if(! is_array($i['target'])) {
|
||||
$i['target'] = json_decode($i['target'],true);
|
||||
@@ -1527,6 +1528,9 @@ class Activity {
|
||||
if($act->type === 'Announce') {
|
||||
$content['content'] = sprintf( t('🔁 Repeated %1$s\'s %2$s'), $mention, $act->obj['type']);
|
||||
}
|
||||
if ($act->type === 'emojiReaction') {
|
||||
$content['content'] = (($act->tgt && $act->tgt['type'] === 'Image') ? '[img=32x32]' . $act->tgt['url'] . '[/img]' : '&#x' . $act->tgt['name'] . ';');
|
||||
}
|
||||
}
|
||||
|
||||
if(! $s['created'])
|
||||
|
Reference in New Issue
Block a user