mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-27 04:17:51 -07:00
Refactor
This commit is contained in:
parent
47ba59a6ed
commit
8a97bd63c7
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ export default class extends Channel {
|
|||
|
||||
// Subscribe stream
|
||||
this.subscriber.on('hashtag', async note => {
|
||||
const matched = q.some(tags => tags.every(tag => note.tags.map((t: string) => t.toLowerCase()).includes(tag.toLowerCase())));
|
||||
const noteTags = note.tags.map((t: string) => t.toLowerCase());
|
||||
const matched = q.some(tags => tags.every(tag => noteTags.includes(tag.toLowerCase())));
|
||||
if (!matched) return;
|
||||
|
||||
// Renoteなら再pack
|
||||
|
|
Loading…
Reference in a new issue