1
0

fix
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s

This commit is contained in:
syui 2024-04-13 08:36:02 +09:00
parent 8a25e50c62
commit c371943818
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -20,7 +20,7 @@ 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) => {