Wykres commitów

1033 Commity (main)

Autor SHA1 Wiadomość Data
Ryan Barrett 91ffffc8e0
bug fix for quality filter (REQUIRES_*) status checks
they go before explicit opt in overrid
2024-05-16 23:33:30 -07:00
Ryan Barrett 06e2e61b1e
ATProto: switch to granary's logic to populate strongRefs, via DatastoreClient
for #1007
2024-05-16 13:11:29 -07:00
Ryan Barrett d52b2ce3e9
ATProto: add new DatastoreClient class that uses both datastore and appview
for #1007
2024-05-16 12:48:28 -07:00
Ryan Barrett 8ee4c3b2ea
atproto_firehose.handle: switch dag_json from compact=True to dialect='atproto'
for AT Protocol's DAG-JSON variant with $link and $bytes: https://atproto.com/specs/data-model ; for https://github.com/snarfed/bridgy-fed/issues/1000
2024-05-15 21:00:42 -07:00
Ryan Barrett e4f9966686
Protocol.receive: second part of making explicit opt in override implicit opt out
for #1052, #974
2024-05-15 11:41:20 -07:00
Ryan Barrett 71b2306476
User.status/is_enabled: make explicit opt in override implicit profile opt-outs
...like Bluesky's hide from logged in views. fixes #1052
2024-05-15 10:35:03 -07:00
Ryan Barrett 03c5638bc1
Protocol.receive bug fix: resolve ids before checking for bot user follow, not after
for #1017
2024-05-14 17:01:20 -07:00
Ryan Barrett f6798f2725
abstract "bridged from Bridgy Fed" profile label across protocols
for #976
2024-05-14 16:03:42 -07:00
Ryan Barrett e089de97ee
ATProto: noop refactor, move actor self label to convert()
for #976
2024-05-14 16:03:42 -07:00
Ryan Barrett 8eeb588d11
atproto_firehose: make its own GAE service, lots of other refactoring
optimize loading DIDs, move around threads and exception handling, etc.

for #978
2024-05-13 22:02:09 -07:00
Ryan Barrett 2b449c6d31
User.status blocked bug fix for account age
for #1048
2024-05-13 07:35:12 -07:00
Ryan Barrett 79e5d2be07
bug fix for User.status handling: check for false-ness, not is None
we have some users in the datastore with status None, some with False. 😕 fixes #1048
2024-05-12 19:02:07 -07:00
Ryan Barrett dcd5f48b04
fix test_models.test_requires_name override
https://app.circleci.com/pipelines/github/snarfed/bridgy-fed/2174/workflows/20436f03-5f56-435a-9419-c52c3a97e184/jobs/2482
2024-05-11 22:43:32 -07:00
Ryan Barrett 348987f0b4
add Protocol.REQUIRES_OLD_ACCOUNT, enable for ActivityPub 2024-05-11 19:20:33 -07:00
Ryan Barrett 59b9e9c904
add protocol.LIMITED_DOMAINS 2024-05-11 17:39:04 -07:00
Ryan Barrett 3bba875c13
test_models: fix shadowed test name 2024-05-11 17:12:39 -07:00
Ryan Barrett 078bef041e
turn on REQUIRES_AVATAR/NAME for ActivityPub, Bluesky 2024-05-11 16:50:57 -07:00
Ryan Barrett 890c7083d3
Protocol.REQUIRES_NAME: check against handle, id 2024-05-11 16:47:12 -07:00
Ryan Barrett de0af66979
basic anti-spam: add new Protocol.REQUIRES_AVATAR/NAME constants
...and start returning `blocked` from User.status for them
2024-05-11 16:03:07 -07:00
Ryan Barrett 6bc9269ad0
ATProto firehose: load bridged dids from AtpRepo instead of users
hopefully cuts down on datastore load a bit

for #978
2024-05-10 11:31:47 -07:00
Ryan Barrett 741146eb8d
ATProto firehose: encode Object.bsky as compact DAG-JSON
fixes https://console.cloud.google.com/errors/detail/CIGJnbnCq7fm1gE;time=P30D?project=bridgy-federated and similar
2024-05-10 06:51:58 -07:00
Ryan Barrett 989cd29860
ATProto firehose: bug fix for loading DIDs
fixes https://console.cloud.google.com/errors/detail/CKKTu6mM0sunXQ;time=P30D?project=bridgy-federated
2024-05-09 21:25:13 -07:00
Ryan Barrett d56f405c96
ATProto firehose: fix race conditions in loading DIDs
for #978
2024-05-09 15:39:18 -07:00
Ryan Barrett 66b8846760
ATProto firehose: refactor and extract out loading our DIDs 2024-05-09 14:05:05 -07:00
Ryan Barrett eea8779872
ATProto firehose: subscribe at stored cursor + 1
for #978
2024-05-09 08:44:30 -07:00
Ryan Barrett a690bc0115
add bsky.social, x.com to domain blocklist
for https://github.com/snarfed/bridgy-fed/discussions/1035 . thanks for the nudge @lucajet!
2024-05-09 07:08:34 -07:00
Ryan Barrett 1ecdaf6b34
ATProto firehose: store cursor 2024-05-08 23:11:27 -07:00
Ryan Barrett b788105a71
ATProto firehose: start implementing cursor
for #978
2024-05-08 21:35:03 -07:00
Ryan Barrett 1e5fcfda0b
ATProto firehose: error handling, reconnect in subscribe 2024-05-08 20:43:10 -07:00
Ryan Barrett b8e0fecc3b
atproto_firehose.handle: implement delete
for #978
2024-05-08 20:19:18 -07:00
Ryan Barrett b4841f3e60
ATProto firehose: noop refactoring, add Op namedtuple
for #978
2024-05-08 15:48:39 -07:00
Ryan Barrett 0d24fafefc
ATProto firehose: tests for updates
for #978
2024-05-08 13:31:08 -07:00
Ryan Barrett 7867326ebe
ATProto firehose: implement deletes
for #978
2024-05-08 13:26:36 -07:00
Ryan Barrett 5c77f02dba
ATProto firehose: bug fix for quote posts with media embeds
for #978
2024-05-08 12:13:26 -07:00
Ryan Barrett 20afb59809
ATProto firehose: implement quote posts
for #978
2024-05-08 11:39:45 -07:00
Ryan Barrett 72ae63f4a0
ATProto firehose: test replies, mentions
#978
2024-05-08 11:31:31 -07:00
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 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 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 ca8e70de6a
ATProto: switch polling getAuthorFeed to posts_with_replies
for #1011, #1018
2024-05-07 08:16:41 -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 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 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