1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-01 15:38:31 +00:00
* Fixed: The example rich content embed not working correctly when the setting is disabled.
This commit is contained in:
SirStendec 2019-09-12 17:49:49 -04:00
parent 5ad0e94a0f
commit 6a846a23b6
3 changed files with 5 additions and 4 deletions

View file

@ -22,7 +22,7 @@ export const Links = {
priority: -10,
test(token) {
if ( ! this.context.get('chat.rich.all-links') )
if ( ! this.context.get('chat.rich.all-links') && ! token.force_rich )
return false;
return token.type === 'link'

View file

@ -1,6 +1,6 @@
<template>
<div>
<div class="tw-c-text-alt tw-mg-b-05">
<div v-if="data">
<div class="tw-c-text-alt-2 tw-mg-b-05">
{{ t('setting.example', 'Example:') }}
</div>
<chat-rich
@ -30,6 +30,7 @@ export default {
const url = VIDEOS[Math.floor(Math.random() * VIDEOS.length)],
token = {
type: 'link',
force_rich: true,
is_mail: false,
url,
text: url