Wykres commitów

2419 Commity (fc14298f0ddc7f90527b0c0b81677e0b0e82d04f)

Autor SHA1 Wiadomość Data
Ryan Barrett 8ff5426c49
test_atproto_firehose: noop refactor 2024-05-08 11:25:59 -07:00
Ryan Barrett 44763ca8ab
ATProto firehose: more tests
for #978
2024-05-08 11:18:50 -07:00
Ryan Barrett e214bc0a43
ATProto firehose: more tests
for #978
2024-05-08 10:39:03 -07:00
Ryan Barrett 389e2d9205
Protocol.targets: don't add trailing slash to PDS URL https://atproto.brid.gy
fixes #1032
2024-05-08 09:37:47 -07:00
Ryan Barrett 67e0ac414e
stop storing Object.as1 in datastore, generate it dynamically instead
I thought I'd use it in the web console for debugging more, but I use a Python shell instead
2024-05-07 22:13:54 -07:00
Ryan Barrett 7ecf3dc381
ATProto firehose: start tests
for #978
2024-05-07 17:36:34 -07:00
Ryan Barrett f533479e0b
noop: drop unused flask.g imports 2024-05-07 17:14:59 -07:00
Ryan Barrett 0f35a2e1a1
ATProto firehose: convert to function we can run in a thread
for #978
2024-05-07 16:58:52 -07:00
Ryan Barrett 622d07a984
ATProto firehose: move and rename file 2024-05-07 16:24:16 -07:00
Ryan Barrett 3057dd6757
ATProto firehose: correctly load and handle bridged ATProto vs non-ATProto DIDs
for #978
2024-05-07 16:17:44 -07:00
Ryan Barrett 38a8067ef7
models.PROTOCOLS: switch to hard coding protocol string labels/abbrevs
we used to wait for ProtocolUserMeta to populate these string keys, but that was awkward to use in datastore model properties with choices, below; it required overriding them in reset_model_properties, which was always flaky.
2024-05-07 16:15:20 -07:00
Ryan Barrett 6f4d79a5f1
ATProto: start on firehose subscriber to replace polling
can't wait for this! for #978
2024-05-07 14:15:51 -07:00
Ryan Barrett 8ef39958b4
fix typos in bsky.brid.gy bio 2024-05-07 14:15:26 -07:00
Ryan Barrett 21b745496e
update docs and bsky.brid.gy bio to explain why it follows you back
for #999
2024-05-07 11:06:15 -07:00
Ryan Barrett 4da00192b0
when someone follows a bot user to opt in, have the bot user follow them back
fixes #999. this makes sure we start receiving posts from AP users immediately, instead of waiting until a Bluesky opted in user follows them.
2024-05-07 10:54:18 -07:00
Ryan Barrett 9765227aa0
bump up ATProto polling frequency to just 1m after last poll finished 2024-05-07 08:16:41 -07:00
Ryan Barrett ca8e70de6a
ATProto: switch polling getAuthorFeed to posts_with_replies
for #1011, #1018
2024-05-07 08:16:41 -07:00
dependabot[bot] 6504da6414 build(deps): bump cryptography from 42.0.5 to 42.0.7
Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.5 to 42.0.7.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.5...42.0.7)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 05:22:42 -07:00
dependabot[bot] 98abefddf7 build(deps): bump jinja2 from 3.1.3 to 3.1.4
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 13:44:28 -07:00
Ryan Barrett 5fa0645d0b
user page: don't show DMs to protocol bot users
fixes #1022
2024-05-06 12:10:13 -07:00
Ryan Barrett 2fa1ae73eb
when someone follows a bot user, refresh their profile first
...so that we're up to date on whether they're opted out or not

fixes #1017
2024-05-06 11:30:33 -07:00
Ryan Barrett 99129b6309
hub: drop memory back down to default 2024-05-06 11:30:33 -07:00
dependabot[bot] 2cd38213f9 build(deps): bump werkzeug from 3.0.2 to 3.0.3
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 05:53:50 -07:00
dependabot[bot] 5dbde70ad5 build(deps): bump flask-caching from 2.2.0 to 2.3.0
Bumps [flask-caching](https://github.com/pallets-eco/flask-caching) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/pallets-eco/flask-caching/releases)
- [Changelog](https://github.com/pallets-eco/flask-caching/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets-eco/flask-caching/compare/v2.2.0...v.2.3.0)

---
updated-dependencies:
- dependency-name: flask-caching
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 05:53:21 -07:00
Ryan Barrett c943e6fd87
/update-profile: bug fix for when user profile fetch fails
fixes https://console.cloud.google.com/errors/detail/CLzStOz_oPfYxwE;time=P30D?project=bridgy-federated
2024-05-05 19:22:11 -07:00
Ryan Barrett 515be28cdd
Protocol.receive: automatically send to ATProto PDS if user has ATProto enabled
for #999
2024-05-05 17:21:24 -07:00
Ryan Barrett c608ecaa36
noop: misc constants cleanup 2024-05-05 16:35:23 -07:00
Ryan Barrett 01d42f87a6
docs: revise Bluesky polling delay 2024-05-05 14:25:16 -07:00
Ryan Barrett 12d41ad4c0
first pass at FEDERATION.md file
fixes #477
2024-05-05 13:52:27 -07:00
Ryan Barrett efedc49cc0
AP: implement FEP-2677: add instance actor to nodeinfo
https://codeberg.org/fediverse/fep/src/branch/main/fep/2677/fep-2677.md
2024-05-05 13:02:44 -07:00
Ryan Barrett ca8745d317
docs: historical posts sometimes but only best effort 2024-05-05 11:19:18 -07:00
Ryan Barrett 252ea7e3e1
docs: bluesky doesn't support edits
for #947
2024-05-05 09:04:53 -07:00
Ryan Barrett c345d95b5e
webfinger: add a self link with type application/activity+json
for interop with some fediverse servers like Pleroma (and Akkoma etc) that are unnecessarily picky about which self content type they use from XRD vs JRD.

for #995. thanks @qazmlp!
2024-05-05 08:39:38 -07:00
Ryan Barrett 034236f4cf
AP: don't duplicate security context in @context in bot users
fixes #1003. thanks @grishka!
2024-05-05 08:29:47 -07:00
Ryan Barrett c98d8fce00
switch ATProto polling from cursor to indexedAt
for #954
2024-05-05 07:31:12 -07:00
Ryan Barrett 6f0f53bdb8
ATProto post polling: stop using cursor
this was unintentionally walking backward and backfilling

for #954
2024-05-05 07:31:09 -07:00
Ryan Barrett c0e02210c6
ATProto: drop manual GC in polling
for #954
2024-05-05 07:31:05 -07:00
Ryan Barrett 0911d71e76
temporarily switch ATProto polling from hub to default service
for #954
2024-05-05 07:30:58 -07:00
Ryan Barrett 0781a4c695
AP inbox delivery: return 422 when a user with a bad handle follows the bot user
for #982
2024-05-04 13:39:39 -07:00
Ryan Barrett cb79bf5b58
bump up hub to 2G memory, explicitly GC during polls 2024-05-04 13:28:12 -07:00
Ryan Barrett 832b7a0276
ATProto poll notifs: limit 100 for protocol bot users
try to make sure we don't miss any follows until we switch to firehose in #978

for https://github.com/snarfed/bridgy-fed/issues/997
2024-05-04 08:42:44 -07:00
Ryan Barrett 9a0e278004
docs: fediverse usernames can't contain Unicode or start or end with _, -, ~
for https://github.com/snarfed/bridgy-fed/issues/982
2024-05-03 21:18:16 -07:00
Ryan Barrett a576e54796
ATProto polling: include limit even with cursor 2024-05-03 15:40:57 -07:00
Ryan Barrett 00464ccfd0
bump up receive task queue rate 2024-05-03 15:31:35 -07:00
Ryan Barrett 2bf526ab7c
refactor validating handles in ATProto and elsewhere
for https://github.com/snarfed/bridgy-fed/issues/982
2024-05-03 15:18:16 -07:00
Ryan Barrett b8e67829e3
ids.translate_handle: validate ATProto handles
https://atproto.com/specs/handle#handle-identifier-syntax

for https://github.com/snarfed/bridgy-fed/issues/982
2024-05-03 14:51:26 -07:00
Ryan Barrett f3bbf2b4c9
ATProto: don't poll posts for opted out users 2024-05-03 13:59:29 -07:00
Ryan Barrett 2f1ec8779f
ATProto: start using cursors in feed and notif polls
for #954
2024-05-03 12:54:59 -07:00
Ryan Barrett 8c438a50dc
docs: temporarily hide DM stuff since we don't actually do those yet 2024-05-03 12:27:46 -07:00
Ryan Barrett ac567ee5b7
bump up task queue rates to handle new volume 2024-05-03 11:00:28 -07:00