kopia lustrzana https://github.com/snarfed/bridgy-fed
rodzic
0781a4c695
commit
0911d71e76
8
app.py
8
app.py
|
@ -10,3 +10,11 @@ import activitypub, atproto, convert, follow, pages, redirect, ui, webfinger, we
|
|||
|
||||
import models
|
||||
models.reset_protocol_properties()
|
||||
|
||||
app.add_url_rule('/queue/atproto-poll-notifs',
|
||||
view_func=atproto.poll_notifications,
|
||||
methods=['GET', 'POST'])
|
||||
|
||||
app.add_url_rule('/queue/atproto-poll-posts',
|
||||
view_func=atproto.poll_posts,
|
||||
methods=['GET', 'POST'])
|
||||
|
|
|
@ -5,9 +5,9 @@ cron:
|
|||
- description: ATProto poll posts
|
||||
url: /queue/atproto-poll-posts
|
||||
schedule: every 5 minutes
|
||||
target: hub
|
||||
target: default
|
||||
|
||||
- description: ATProto poll notifications
|
||||
url: /queue/atproto-poll-notifs
|
||||
schedule: every 5 minutes
|
||||
target: hub
|
||||
target: default
|
||||
|
|
|
@ -4,11 +4,11 @@ dispatch:
|
|||
- url: "*/queue/atproto-commit"
|
||||
service: hub
|
||||
|
||||
- url: "*/queue/atproto-poll-notifs"
|
||||
service: hub
|
||||
# - url: "*/queue/atproto-poll-notifs"
|
||||
# service: hub
|
||||
|
||||
- url: "*/queue/atproto-poll-posts"
|
||||
service: hub
|
||||
# - url: "*/queue/atproto-poll-posts"
|
||||
# service: hub
|
||||
|
||||
- url: "*/xrpc/com.atproto.sync.subscribeRepos"
|
||||
service: hub
|
||||
|
|
Ładowanie…
Reference in New Issue