fix(fediverse): move mentions array to string. allow events for error handling.

This commit is contained in:
vulet 2021-02-26 13:54:30 +08:00
parent dddb8ad014
commit 50e9f808da
2 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ const eventHandler = (args, roomId, command, event) => {
break;
case 'post': case 'reply': case 'media': case 'mediareply':
case 'random': case 'randomreply': case 'randommedia': case 'randommediareply':
args.push(roomId, userInput, {
args.push(roomId, event, userInput, {
isReply: !!~command.indexOf('reply'),
hasMedia: !!~command.indexOf('media'),
hasSubject: !!~command.indexOf('random'),