1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 23:55:58 +09:00
This commit is contained in:
Aya Morisawa 2018-12-19 10:23:57 +09:00
parent 624fd093f2
commit 556677be7a
No known key found for this signature in database
GPG Key ID: 3E64865D70D579F2

View File

@ -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