mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 05:23:09 +02:00
fix: not being able to only send emojis
This commit is contained in:
parent
4a3c813d3e
commit
7d9262c55a
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ export class ApiStatusMastodon {
|
||||||
const removed = text.replace(/@\S+/g, '').replace(/\s|/g, '');
|
const removed = text.replace(/@\S+/g, '').replace(/\s|/g, '');
|
||||||
const isDefaultEmoji = emojiRegexAtStartToEnd.test(removed);
|
const isDefaultEmoji = emojiRegexAtStartToEnd.test(removed);
|
||||||
const isCustomEmoji = /^:[a-zA-Z0-9@_]+:$/.test(removed);
|
const isCustomEmoji = /^:[a-zA-Z0-9@_]+:$/.test(removed);
|
||||||
if ((body.in_reply_to_id && isDefaultEmoji) || isCustomEmoji) {
|
if ((body.in_reply_to_id && isDefaultEmoji) || (body.in_reply_to_id && isCustomEmoji)) {
|
||||||
const a = await client.createEmojiReaction(
|
const a = await client.createEmojiReaction(
|
||||||
body.in_reply_to_id,
|
body.in_reply_to_id,
|
||||||
removed,
|
removed,
|
||||||
|
|
Loading…
Reference in a new issue