mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 08:14:10 +00:00
Add Emoji Api Transformer
This commit is contained in:
parent
fec9741086
commit
0a9ffe80b3
1 changed files with 18 additions and 0 deletions
18
app/Transformer/Api/EmojiTransformer.php
Normal file
18
app/Transformer/Api/EmojiTransformer.php
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Transformer\Api;
|
||||||
|
|
||||||
|
use League\Fractal;
|
||||||
|
|
||||||
|
class EmojiTransformer extends Fractal\TransformerAbstract
|
||||||
|
{
|
||||||
|
public function transform($emoji)
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'shortcode' => '',
|
||||||
|
'static_url' => '',
|
||||||
|
'url' => '',
|
||||||
|
'visible_in_picker' => false
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue