This commit is contained in:
parent
70b072505f
commit
7762c112ce
@ -19,8 +19,7 @@ export class FirehoseSubscription extends FirehoseSubscriptionBase {
|
|||||||
const postsToDelete = ops.posts.deletes.map((del) => del.uri)
|
const postsToDelete = ops.posts.deletes.map((del) => del.uri)
|
||||||
const postsToCreate = ops.posts.creates
|
const postsToCreate = ops.posts.creates
|
||||||
.filter((create) => {
|
.filter((create) => {
|
||||||
// only alf-related posts
|
return create.record.text.match('^/[a-z]') || create.record.text.match('^@ai ') || create.record.text.match('^ai ');
|
||||||
return create.record.text.match('^/[a-z]') || create.record.text.match('^@ai ') || create.record.text.match('^ai ');
|
|
||||||
//return create.record.text.toLowerCase().includes('alf')
|
//return create.record.text.toLowerCase().includes('alf')
|
||||||
})
|
})
|
||||||
.map((create) => {
|
.map((create) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user