Wykres commitów

252 Commity (c02b762d34bb16f6e87d402ad30f84fc6b454701)

Autor SHA1 Wiadomość Data
Ryan Barrett fa8149165b
receive task: fix delay logging
for #1378
2024-10-23 21:11:21 -07:00
Ryan Barrett 06242b8ae9
opt_out.py bug fix for protocols that aren't in AP's DEFAULT_ENABLED_PROTOCOLS
eg bsky
2024-10-23 16:37:49 -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 8b36e6527d
datastore transactions: remove on ATProto.create_for, narrow in models.enable
we were doing heavy work like generating RSA keys and external network requests for creating DIDs inside datastore txes, which led to bad contention. details in https://github.com/snarfed/bridgy-fed/issues/1376
2024-10-11 21:09:47 -07:00
Ryan Barrett 93c034de3b
noop: tweak a few log messages 2024-10-11 15:24:25 -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 d37f83b11b
use raise_=False in more Protocol.load calls 2024-10-04 12:59:57 -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 4255719939
activitypub.actor: put native user id in alsoKnownAs
for https://github.com/snarfed/bridgy-fed/issues/1331
2024-10-02 15:01:07 -07:00
Ryan Barrett 2b3c3ad592
ATProto: add user id in native protocol to DID doc alsoKnownAs
for https://github.com/snarfed/bridgy-fed/issues/1331
2024-10-02 14:17:27 -07:00
Ryan Barrett 7c71feb30d
AtpRemoteBlob.get_or_create: stop checking mime type
will bring back once we've resolved https://github.com/snarfed/bridgy-fed/issues/1348#issuecomment-2381056468

for https://console.cloud.google.com/errors/detail/CK6IvpH4rPPzdg;time=P1D;locations=global?project=bridgy-federated
2024-10-02 07:57:23 -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 bcadb53d3e
atproto noop: pass blob field name through to AtpRemoteBlob.get_or_create 2024-09-30 08:54:02 -07:00
Ryan Barrett dafff5094a
ATProto.fetch: handle bad at:// URIs
fixes https://console.cloud.google.com/errors/detail/CICQ0JPQn6nqpQE;time=P1D;refresh=true;locations=global?project=bridgy-federated
2024-09-30 08:54:01 -07:00
Ryan Barrett 5073f0f422
ATProto fetch_blobs: check Content-Type against blob lexicon accept, if any 2024-09-29 11:05:30 -07:00
Ryan Barrett 4fb9e35b13
ATProto: skip videos over 50MiB blob maxSize limit
for #1348, using snarfed/arroba@f8526e107d

not images yet though
2024-09-29 08:57:19 -07:00
Ryan Barrett b09a705f34
ATProto: move lexicon schema validation to arroba
in snarfed/arroba#ec4d136972f0e26a9ebe10d0fa98e914018a64ca
2024-09-28 16:10:53 -07:00
Ryan Barrett 19b5dd56e2
ATProto: try turning on schema validation for outgoing records
see snarfed/lexrpc#3. I expect this will highlight at least a couple kinds of invalid records that we're currently emitting, eg #1327
2024-09-27 20:10:38 -07:00
Ryan Barrett 94f2f66ae6
noop: atproto: simplify some Bluesky identifiers 2024-09-19 13:47:24 -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 3dc3330603
code doc and docstring tweaks 2024-09-12 13:05:41 -07:00
Ryan Barrett 7c4784e103
ATProto._convert: fetch video blobs as well as images
for #1317
2024-09-11 20:21:48 -07:00
Ryan Barrett 794a772619
switch ATProto chat polling from task to cron job 2024-09-10 16:46:37 -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 01fbc604e9
atproto.poll_chat_task: fill in DM recipient (to) manually
it's not in chat.bsky.convo.defs#messageView, and the repo DID in the at:// URI should be the sender's, not the recipient's

for #966
2024-08-29 16:49:07 -07:00
Ryan Barrett c974c6fe2a
ATProto.poll_chat_task: ignore chat messages from protocol bot users
for #966
2024-08-29 12:52:27 -07:00
Ryan Barrett 832b3e3914
ATProto chat log polling: update to handle getLog semantics
re https://github.com/bluesky-social/atproto/issues/2760 , for #966
2024-08-29 12:52:27 -07:00
Ryan Barrett 9c0ad8c00c
ATProto: poll for new chat messages to protocol bot users
for #966
2024-08-27 22:44:37 -07:00
Ryan Barrett 302e2cc790
noop: extract ATProto.create_report and send_chat out into functions 2024-08-27 22:44:37 -07:00
Ryan Barrett 8f32881fd5
noop: extract new atproto.chat_client() fn out of ATProto.send_chat 2024-08-27 22:44:37 -07:00
Ryan Barrett 2626bda8a4
ATProto.send_chat: narrow getConvoForMembers error handling to just "recipient disabled chat"
raise others, and all from sendMessage
2024-08-21 07:55:09 -07:00
Ryan Barrett ea6e195835
ATProto.send_chat: add new lxm claim to JWT
lxm scopes the JWT to a single XRPC method, so we need a token per call now. https://github.com/bluesky-social/atproto/discussions/2687
2024-08-16 14:32:47 -07:00
Ryan Barrett 2adc661aa4
/r/ and Protocol.for_id: handle bad bsky.app URLs better
for https://console.cloud.google.com/errors/detail/CNSB0pOhgIfdbA;locations=global;time=P30D?project=bridgy-federated
2024-08-15 14:35:49 -07:00
Ryan Barrett 799ccc2a7c
noop: ATProto.send: switch as1.is_dm to as1.recipient_if_dm 2024-08-14 17:06:58 -07:00
Ryan Barrett a91c8087fb
ATProto.send: gracefully handle updates/deletes that don't match original AT URI
for eg #1252
2024-08-11 07:42:10 -07:00
Ryan Barrett 925771562f
add Protocol.SUPPORTS_DMS
for #1024, #966, etc
2024-08-08 20:41:57 -07:00
Ryan Barrett 37c781a2df
ATProto.send: handle DMs, translate and send as chat messages
for #1024, #966, etc
2024-08-08 20:17:06 -07:00
Ryan Barrett 848313dfd4
ATProto.send_chat: handle 400 from getConvoForMembers, sendMessage
for #1024, #966, etc
2024-08-07 13:09:37 -07:00
Ryan Barrett c8d6ba510f
add ATProto.send_chat
for #1024, #966, #758, etc
2024-08-07 13:09:37 -07:00
Ryan Barrett c4f75bfbd0
noop: ATProto.create_report: fix log message 2024-08-07 13:09:37 -07:00
Ryan Barrett 124718ecc7
ATProto.create_report bug fix: include JWT 2024-08-05 19:38:52 -07:00
Ryan Barrett 14548dcaf6
add flag to ATProto.SUPPORTED_AS1_TYPES 2024-08-05 13:34:55 -07:00
Ryan Barrett 70dd6d3ceb
minor logging optimizations
for https://github.com/snarfed/bridgy-fed/issues/1149
2024-08-02 08:03:44 -07:00
Ryan Barrett 5454e19a23
ATProto.handle_to_id: skip opted out/blocked users
for #1215
2024-07-27 08:55:53 -07:00
Ryan Barrett d14e19ce16
ATProto._convert: when converting images to blobs, skip images that we can't fetch
fixes errors registering web sites when fetching their favicons etc fails
2024-07-24 16:08:55 -07:00
Ryan Barrett 00626f5f42
ATProto.create_for: handle existing DNS record
delete and add new one. for #1072
2024-07-24 13:41:21 -07:00
Ryan Barrett 4c21eb2f74
ATProto.create_for: extract out set_dns_did method
prep for #1072
2024-07-24 08:17:06 -07:00
Ryan Barrett da251d9ec1
ATProto: link to user page in profile footer links for web users 2024-07-23 22:11:42 -07:00
Ryan Barrett 4c5b666703
ATProto._convert: always convert RSS/Atom posts to external embeds
with new bluesky.from_as1 as_embed kwarg
2024-07-22 13:55:35 -07:00
Ryan Barrett 7e792ea22f
drop spam filter req't that display name is different than username
for https://akkoma.dev/AkkomaGang/akkoma/issues/438#issuecomment-12745 , cc @snan
2024-07-16 10:46:17 -07:00