logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 89c409c6d2277170f36e452e8ea316ca45989e3f
parent d0bfd9a80826a7cdb37e1a84cf70ab8a44c3579e
Author: Ilja <ilja@ilja.space>
Date:   Mon, 21 Mar 2022 08:57:59 +0100

Add default array for RichContent emoji

Reports don't currently return an emoji key. There's an MR to add it, but in case something doesn't return this key, we now have a default empty array.

Diffstat:

Msrc/components/rich_content/rich_content.jsx3++-
1 file changed, 2 insertions(+), 1 deletion(-)

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