This commit is contained in:
parent
8a25e50c62
commit
c371943818
@ -18,3 +18,9 @@ echo $uri
|
|||||||
```sh
|
```sh
|
||||||
$ git clone https://github.com/bluesky-social/feed-generator
|
$ git clone https://github.com/bluesky-social/feed-generator
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker compose build feed-generator
|
||||||
|
docker build -t publish_feed -f Dockerfile .
|
||||||
|
docker run publish_feed
|
||||||
|
```
|
||||||
|
@ -20,8 +20,8 @@ export class FirehoseSubscription extends FirehoseSubscriptionBase {
|
|||||||
const postsToCreate = ops.posts.creates
|
const postsToCreate = ops.posts.creates
|
||||||
.filter((create) => {
|
.filter((create) => {
|
||||||
// only alf-related posts
|
// only alf-related posts
|
||||||
return create.record.text.match('^/[a-z]') || create.record.text.match('^@ai');
|
return create.record.text.match('^/[a-z]') || create.record.text.match('^@ai ');
|
||||||
//return create.record.text.toLowerCase().includes('alf')
|
//return create.record.text.toLowerCase().includes('alf')
|
||||||
})
|
})
|
||||||
.map((create) => {
|
.map((create) => {
|
||||||
// map alf-related posts to a db row
|
// map alf-related posts to a db row
|
||||||
|
Loading…
Reference in New Issue
Block a user