From 38ed0ac617456563bd4c7b5a3012761312616a42 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 20 Sep 2021 13:58:23 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index c4b5abb4c5..d1bc02d3c8 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -7890,7 +7890,10 @@ module.exports = (_ => { if (!message) message = BDFDB.ObjectUtils.get(e.instance.props[key], "props.message"); else break; } - if (message) e.returnvalue.props.children.props[InternalData.userIdAttribute] = message.author.id; + if (message) { + e.returnvalue.props.children.props[InternalData.authorIdAttribute] = message.author.id; + if (message.author.id == BDFDB.UserUtils.me.id) e.returnvalue.props.children.props[InternalData.authorSelfAttribute] = true; + } } };