1
0
Fork 0
forked from mirror/pixelfed

Merge pull request #3348 from shadowfacts/emoji-schema

Change static_path on custom emojis to static_url
This commit is contained in:
daniel 2022-04-01 17:21:22 -06:00 committed by GitHub
commit a5114bf35a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ class CustomEmoji extends Model
return [
'shortcode' => $match,
'url' => $url,
'static_path' => $url,
'static_url' => $url,
'visible_in_picker' => $tag->disabled == false
];
}
@ -57,7 +57,7 @@ class CustomEmoji extends Model
if($activitypub == true) {
return $tag && isset($tag['icon']);
} else {
return $tag && isset($tag['static_path']);
return $tag && isset($tag['static_url']);
}
})
->values()

View file

@ -118,7 +118,7 @@ class CustomEmojiService
return [
'shortcode' => str_replace(':', '', $emojo->shortcode),
'url' => $url,
'static_path' => $url,
'static_url' => $url,
'visible_in_picker' => $emojo->disabled == false
];
})