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
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
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
a576e54796
ATProto polling: include limit even with cursor
2024-05-03 15:40:57 -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
2f1ec8779f
ATProto: start using cursors in feed and notif polls
...
for #954
2024-05-03 12:54:59 -07:00
Ryan Barrett
f4a0c3deaa
fix tests for 7b3fa6e82b
2024-05-02 20:22:35 -07:00
Ryan Barrett
7b3fa6e82b
ATProto: switch polling posts from getTimeline to getAuthorFeed
...
for #992
2024-05-02 20:11:21 -07:00
Ryan Barrett
1bcd675ecd
Bluesky _/~ => - characters in handles: docs, another test
...
for #982
2024-05-02 15:54:41 -07:00
Ryan Barrett
4b95d49ccc
ids.translate_handle: convert _ and ~ chars to - for Bluesky
...
hopefully fixes #982
2024-05-02 15:41:41 -07:00
Ryan Barrett
91638ef8bb
bring back self replies check, only send self replies to followers
...
revises 073ce475e5
, #981 , #950 , #949
2024-05-02 13:39:10 -07:00
Ryan Barrett
073ce475e5
Protocol.receive: bridge replies to followers where in-reply-to already is
...
...ie if it's on the follower's protocol, either native or bridged.
for #981 , #950 , #949
not confident in this, despite the tests. worried it will either over- or under-deliver. guess we'll see.
2024-05-01 17:45:48 -07:00
Ryan Barrett
ee9bb53745
ATProto: drop trailing slash from PDS URL
...
the ATProto DID spec says it shouldn't be there: https://atproto.com/specs/did#did-documents
> The serviceEndpoint field must contain an HTTPS URL of server. It should contain only the URI scheme (http or https), hostname, and optional port number, not any "userinfo", path prefix, or other components.
thanks for the nudge @mackuba!
2024-05-01 17:45:48 -07:00
Ryan Barrett
f668a53f74
User.is_enabled: if a user explicitly opts in, override profile opt outs
...
fixes #974
2024-04-30 12:38:43 -07:00
Ryan Barrett
5071685c1b
noop: move is_enabled tests from test_protocol to test_models
2024-04-30 12:31:48 -07:00
Ryan Barrett
c8ca31554b
AP: strip Link attachments since fedi instances generate their own link previews
...
hopefully fixes #958
2024-04-29 15:13:12 -07:00
Ryan Barrett
b6be345921
UI: refactor actor link rendering into User.user_link / Object.actor_link
2024-04-29 12:27:00 -07:00
Ryan Barrett
e5c12c4595
update protocol bot user data to match snarfed/granary@ac14727
2024-04-28 12:09:39 -07:00
Ryan Barrett
b6845246e9
fix protocol bot users' image URLs
...
re: #967
2024-04-28 08:14:55 -07:00
Ryan Barrett
2a4146fe74
update profile UI: link handle in flashed message
2024-04-28 06:50:46 -07:00
Ryan Barrett
cbe4b59206
convert Protocol.is_enabled_to to an instance method
...
next commit will move it to User
2024-04-27 20:27:33 -07:00
Ryan Barrett
71cb803840
user page bug fix for direct vs enabledd
...
need to drop direct!
2024-04-27 09:54:13 -07:00