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
7be87b0047
docs: update "I can't find my bridged account" sections
2024-05-11 20:04:09 -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
a7c099fc08
user pages: only show follow/unfollow UI for web users
...
fixes #1045
2024-05-11 06:50:58 -07:00
Ryan Barrett
f2b5f79489
ATProto firehose: add handle wrapper that catches exceptions
...
also refactor and simplify load_dids, error reporting. #978
2024-05-10 19:59:12 -07:00
Ryan Barrett
206b7a344c
datastore: add AtpBlock index on repo, seq
...
for #1038
2024-05-10 14:22:35 -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
0fc971724d
bump circle cache version
...
trying to fix dag-json CI breakage, https://app.circleci.com/pipelines/github/snarfed/bridgy-fed/2168/workflows/a100d3fc-ed79-42b5-aaa2-4f59472df27c/jobs/2475
2024-05-10 11:11:13 -07:00
Ryan Barrett
e4523ec21c
front page bug fix, text color in web site form input
...
fixes #1042 . thanks @miklb!
2024-05-10 10:35:23 -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
b49fe13e59
ATProto firehose: use report_exception() so we get stack traces
2024-05-09 21:31:41 -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
5ef4111b4d
ATProto firehose: reload our DIDs every 20s
...
for #978
2024-05-09 14:31:57 -07:00
Ryan Barrett
66b8846760
ATProto firehose: refactor and extract out loading our DIDs
2024-05-09 14:05:05 -07:00
Ryan Barrett
20d23c536e
ATProto firehose: run in threads in hub
...
for #978
2024-05-09 13:36:36 -07:00
Ryan Barrett
940c0e8cae
ATProto firehose: don't assume required fields, handle error reporting errors
...
for #978
2024-05-09 13:26:24 -07:00
Ryan Barrett
61e73d880f
front page: drop emoji
...
thanks for the nudge @yoavlurie!
2024-05-09 10:56:51 -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
87165497f0
misc noop langauge changes in comments and docs, eg BGS => relay
2024-05-09 06:43:51 -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
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