mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 05:23:17 +00:00
Update StatusTagsPipeline, reject if type
not set
This commit is contained in:
parent
0d157baf1e
commit
91085c4566
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class StatusTagsPipeline implements ShouldQueue
|
|||
|
||||
// Emoji
|
||||
$tags->filter(function($tag) {
|
||||
return $tag && $tag['type'] == 'Emoji' && isset($tag['id'], $tag['icon'], $tag['name']);
|
||||
return $tag && isset($tag['id'], $tag['icon'], $tag['name'], $tag['type']) && $tag['type'] == 'Emoji';
|
||||
})
|
||||
->map(function($tag) {
|
||||
CustomEmojiService::import($tag['id'], $this->status->id);
|
||||
|
|
Loading…
Reference in a new issue