mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 17:29:05 +01:00
Validate param
This commit is contained in:
parent
6cc6401fa0
commit
adedffa4a8
@ -15,6 +15,8 @@ export default class extends Channel {
|
||||
|
||||
const q: Array<string[]> = params.q;
|
||||
|
||||
if (q == null) return;
|
||||
|
||||
// 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())));
|
||||
|
Loading…
Reference in New Issue
Block a user