mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-01 15:38:31 +00:00
4.9.9
* Fixed: The example rich content embed not working correctly when the setting is disabled.
This commit is contained in:
parent
5ad0e94a0f
commit
6a846a23b6
3 changed files with 5 additions and 4 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue