Use empty array for emji instead

Instead of relying on a key that isn't actually usefull, I just provide an empty array directly.
This commit is contained in:
Ilja 2022-03-21 09:49:06 +01:00
parent 89c409c6d2
commit 88ad5033a8
2 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,7 @@
<RichContent <RichContent
class="report-content" class="report-content"
:html="report.content" :html="report.content"
:emoji="report.emojis" :emoji="[]"
/> />
<div v-if="report.statuses.length"> <div v-if="report.statuses.length">
<small>{{ $t('report.reported_statuses') }}</small> <small>{{ $t('report.reported_statuses') }}</small>

View File

@ -42,8 +42,7 @@ export default Vue.component('RichContent', {
// Emoji object, as in status.emojis, note the "s" at the end... // Emoji object, as in status.emojis, note the "s" at the end...
emoji: { emoji: {
required: true, required: true,
type: Array, type: Array
default: () => []
}, },
// Whether to handle links or not (posts: yes, everything else: no) // Whether to handle links or not (posts: yes, everything else: no)
handleLinks: { handleLinks: {