Wykres commitów

403 Commity (7e7187bc2c098b09bd9354dae35e61b03870541d)

Autor SHA1 Wiadomość Data
Ryan Barrett 3c3dadb524
minor log tweaks, TODO 2024-12-04 14:38:35 -08:00
Ryan Barrett fbb82d2e26
AS2: change Application actor types to Person for users, Service for bots
for #1482
2024-12-03 21:16:11 -08:00
Ryan Barrett 65feae0f9b
more logging tweaks for tasks
only log task creations and runs if traceparent header isn't set

for #1149
2024-12-03 11:03:36 -08:00
Ryan Barrett 778e1c706d
prune down more logging
for #1149
2024-12-02 22:48:56 -08:00
Ryan Barrett 94a0c2618e
prune down misc logging
for #1149
2024-12-02 22:20:12 -08:00
Ryan Barrett 80d510f9bb
stop logging "Task ..." in atproto-commit, atproto-poll-chat tasks
goes with snarfed/webutil@c1b5685166

for #1149
2024-12-02 18:19:52 -08:00
Ryan Barrett 20dc814c80
add 2m delay to receive tasks for deletes
for #1361
2024-11-28 21:39:30 -08:00
Ryan Barrett cf80138e22
Protocol.translate_ids: translate object.object
for #1492
2024-11-28 09:37:51 -08:00
Ryan Barrett 0e2c268363
receive: try harder to detect blocked/filtered users earlier
...eg before starting to bridge them when they follow a bot user. for #1403
2024-11-07 19:41:35 -08:00
Ryan Barrett b4ac98c84e
move common.add, remove to webutil.util
in snarfed/webutil@46ef97e4fe
2024-10-31 09:41:28 -07:00
Ryan Barrett 4abb52b1d1
add username DM command, new Protocol.set_username method, implement in ATProto
for #826
2024-10-27 10:50:27 -07:00
Ryan Barrett fc9813e65c
receive task delay logging bug fix, handle time zones
fixes https://console.cloud.google.com/errors/detail/CP3d5sb0-KPBEA;time=P30D;locations=global?project=bridgy-federated
2024-10-23 21:43:28 -07:00
Ryan Barrett fa8149165b
receive task: fix delay logging
for #1378
2024-10-23 21:11:21 -07:00
Ryan Barrett aaf49e0f37
ATProto: switch from #tombstone to #account active=False for deleting accounts
...including reactivating with #account active=True. it works!

for #1130, #1119
2024-10-22 13:49:18 -07:00
Ryan Barrett f53179d339
send task: drop obsolete orig_obj HTTP param
see bba9cb2d16
2024-10-11 12:02:05 -07:00
Ryan Barrett bba9cb2d16
send and send task: switch orig_obj param from urlsafe-key to string id
...so that we can defer loading it to each protocol's send(). only ActivityPub actually needs it right now. should get rid of it eventually! see #1257
2024-10-11 11:34:31 -07:00
Ryan Barrett d28e762a17
receive and send tasks: drop obsolete obj param, always use obj_id
added in a452f288fe
2024-10-11 09:03:44 -07:00
Ryan Barrett a452f288fe
send and receive tasks: switch from url-safe Object key to string id
will affect all send tasks, but only update-profile receive tasks, the rest already switched to passing Object properties in the HTTP request directly
2024-10-11 08:53:21 -07:00
Ryan Barrett c648fb25ca
tests: remove more Fake routing special cases in Protocol.targets, handle_follow
for #1180
2024-10-10 17:19:02 -07:00
Ryan Barrett 3753ded847
Protocol.targets bug fix: don't guess at reposts' inner obj; actually look it up
for https://github.com/snarfed/bridgy-fed/issues/1357
2024-10-10 14:29:40 -07:00
Ryan Barrett 4a4d965502
Protocol.translate_ids: use URIs for mention tag url field
for #1366
2024-10-08 16:27:59 -07:00
Ryan Barrett a5cbc9b581
tests: remove routing special case for Fake and OtherFake in Protocol.receive
for #1180
2024-10-08 15:03:43 -07:00
Ryan Barrett 5b75fa43d5
noop: tests: rename ExplicitEnableFake => ExplicitFake, eefake => efake 2024-10-08 15:03:43 -07:00
Ryan Barrett d37f83b11b
use raise_=False in more Protocol.load calls 2024-10-04 12:59:57 -07:00
Ryan Barrett 11fff7d3b1
Protocol.targets: handle failed fetches and continue on
for #885
2024-10-04 12:44:11 -07:00
Ryan Barrett 2a13b83084
ATProto: reload DID doc along with profile when necessary
for #1334
2024-10-03 17:06:46 -07:00
Ryan Barrett 788b37279a
pass Object data in receive task HTTP payload instead of through datastore
trying to cut down datastore load and costs. this switches receive tasks from storing and fetching Objects from the datastore to passing their properties - notably as2, our_as1, bsky, etc - in the HTTP request body, as serialized JSON inside form-encoded params.

for #1354, #1149
2024-10-01 21:44:12 -07:00
Ryan Barrett c843c98c3e
Protocol.handle_follow: allow following opted out/blocked users
we still won't bridge or otherwise handle those users' activities though

fixes https://console.cloud.google.com/errors/detail/CM7b86Se9r_qfQ;time=PT1H;locations=global?project=bridgy-federated
2024-09-24 06:59:49 -07:00
Ryan Barrett fdb92dcff9
Protocol.receive: catch HTTP/connection errors, return 304
fixes:
https://console.cloud.google.com/errors/detail/CIb-6vLIioHJaw;time=P1D;locations=global?project=bridgy-federated
https://console.cloud.google.com/errors/detail/CPnSx-yemJ-hlAE;time=P1D;locations=global?project=bridgy-federated
https://console.cloud.google.com/errors/detail/CN278MyjhZbtOQ;time=P1D;locations=global?project=bridgy-federated
etc
2024-09-19 10:44:34 -07:00
Ryan Barrett 724978a25f
noop: receive, send tasks: tweak delay log
for #1308
2024-09-18 20:46:21 -07:00
Ryan Barrett 5884be8300
send task: log delay from when Object was created
for #1308, 85b9643cda
2024-09-17 17:51:20 -07:00
Ryan Barrett 85b9643cda
receive task: log delay from when Object was created
for #1308
2024-09-17 16:50:13 -07:00
Ryan Barrett 4df76d0db7
when we get a delete, or a web user opts out, delete their copies in other protocols
for #1304
2024-09-16 18:27:04 -07:00
Ryan Barrett 9c0c837fb7
Protocol.receive: move deleting actors to after deliver
so that User.enabled_protocols is still populated during deliver

for #1304
2024-09-13 22:17:47 -07:00
Ryan Barrett ffb4459545
revise AP Delete => Bluesky tombstone flow, add integration test
for #1304
2024-09-13 21:43:38 -07:00
Ryan Barrett f3522e42bc
Protocol.translate_ids: translate to, cc, bto, bcc
for #12
2024-09-13 14:50:43 -07:00
Ryan Barrett e50da55da9
Protocol.send: follow User.use_instead
hopefully helps with https://console.cloud.google.com/errors/detail/CMHloZaRmPXQZQ;locations=global;time=P30D?project=bridgy-federated
2024-09-12 13:05:41 -07:00
Ryan Barrett 36a9f94cb8
add fallback kwargs to User.user_link, Protocol.bridged_web_url_for
for #966
2024-09-10 16:44:18 -07:00
Ryan Barrett 26d9a20db3
Protocol.receive: don't fetch actor for deletes or undos 2024-09-03 18:06:45 -07:00
Ryan Barrett c2fc854d01
noop: tweak log message in Protocol.send_task 2024-09-03 12:44:13 -07:00
Ryan Barrett a896b5c869
Protocol.check_supported: allow DMs to/from protocol bot user copy ids
for #966
2024-08-29 12:56:07 -07:00
Ryan Barrett e776ff944b
move not-public check from activitypub.inbox to Protocol.receive 2024-08-19 12:02:52 -07:00
Ryan Barrett ecab888a02
move incoming DM handling from Protocol.receive to dms.receive 2024-08-18 08:29:05 -07:00
Ryan Barrett be2b36cf8a
start new dms module, move Protocol.maybe_bot_dm into it 2024-08-17 22:53:14 -07:00
Ryan Barrett 244dbc6862
DMs: drop welcome special case, don't allow multiple welcome DMs 2024-08-17 16:51:08 -07:00
Ryan Barrett d7642e0392
AP DMs: wrap in post activity, add mention tag, improve DM vs public handling 2024-08-17 16:48:55 -07:00
Ryan Barrett 14a63b8106
Protocol.maybe_bot_dm bug fix: send a Create activity, not a bare Note
for #1205 etc
2024-08-17 14:35:57 -07:00
Ryan Barrett 38b646ef7d
bug fix for DM prompt when unbridged user replies to bridged user
use the right reply URL and in-reply-to author name and URL

for #1205
2024-08-17 12:22:05 -07:00
Ryan Barrett 98098aeabb
when an unbridged user replies to a bridged user, DM them a prompt
one time only, per user per protocol!

for #1205
2024-08-16 14:03:44 -07:00
Ryan Barrett ccb7158350
Protocol.check_supported: allow DMs both to and from bot accounts
for #1205, #1148, #966, #1024
2024-08-16 14:01:28 -07:00