Ryan Barrett
8f087b792b
ATProto: temporarily stop handling stop-following
...
due to follow spammers, #1669
2025-01-07 08:12:58 -08:00
Ryan Barrett
6004720c49
ATProto._convert: populate image embed aspect ratios
...
for #1571
2025-01-06 21:47:21 -08:00
Ryan Barrett
f7bf986868
redirect https://bsky.brid.gy/hashtag/TAG to https://bsky.app/search?q=#TAG
...
for #1634 , thanks @Tamschi!
2024-12-20 09:52:20 -08:00
Ryan Barrett
36cbbdd874
use our usual ndb context kwargs in arroba DatabaseStorage
...
for #1149
2024-12-18 15:50:52 -08:00
Ryan Barrett
38b0f70841
ATProto.create_for: don't set DNS if the user has a custom domain handle
...
fixes https://console.cloud.google.com/errors/detail/COSMr7uQuqb2zQE;locations=global;time=P30D?project=bridgy-federated
2024-12-11 15:09:56 -08:00
Ryan Barrett
da302c2376
Protocol.receive and ATProto.send: detect CRUD of object without id
...
fixes https://console.cloud.google.com/errors/detail/CO_yiJ_PrYSuvQE;locations=global;time=P30D?project=bridgy-federated&inv=1&invt=AbjgeA
2024-12-07 15:52:06 -08:00
Ryan Barrett
4c1931c2f5
ATProto._convert: handle "Web doesn't own id" when fetching for link previews
...
fixes https://console.cloud.google.com/errors/detail/CLSnttKfy4v90wE;locations=global;time=P30D?project=bridgy-federated
2024-12-06 12:41:55 -08:00
Ryan Barrett
7e7187bc2c
ATProto.create_for: recreate DNS when we reactivate an inactive account
...
for #1594
2024-12-04 14:39:12 -08:00
Ryan Barrett
2920b57ed5
ATProto: bluesky._to_external_embed => to_external_embed
...
for snarfed/bridgy-fed#1591 , snarfed/granary@c29dd723f8
2024-12-02 22:00:55 -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
934033219b
ATProto.send: don't require stop-following actor to be opted in
...
for #1582
2024-12-01 21:41:07 -08:00
Ryan Barrett
dcf10b6b7b
ATProto.send: fetch_blobs bug fix for attachments with list-valued stream field
...
fixes https://console.cloud.google.com/errors/detail/COeSpqWD6Z_C6QE;time=P7D;locations=global?project=bridgy-federated&inv=1&invt=AbjA1A
2024-12-01 20:08:18 -08:00
Ryan Barrett
36256ac4b0
ATProto.send: generate external embeds for link previews, take 3
...
one last time with feeling. for #1411
2024-11-30 21:47:46 -08:00
Ryan Barrett
bc3885aab1
ATProto.send: temporarily disable link preview embeds
...
for #1411
2024-11-30 19:48:30 -08:00
Ryan Barrett
547e0630ad
ATProto.send: fetch blobs for attachment images
...
for #1411
2024-11-29 22:42:05 -08:00
Ryan Barrett
c75f74d95a
ATProto.send: generate link preview external embeds for first link in content
...
for #1411
2024-11-29 11:31:54 -08:00
Ryan Barrett
016d480f1c
ATProto: bug fix for removing DNS entry when there isn't one
...
for #1268
2024-11-27 14:59:57 -08:00
Ryan Barrett
928c793510
ATProto: when disabling, also remove DNS entry
...
for #1268
2024-11-27 10:55:18 -08:00
Ryan Barrett
538065792e
User.get_or_create: don't propagate if the user is blocked
...
ie for web sites that don't have RSS or Atom feed or webmentions
for #1458
2024-11-27 09:04:38 -08:00
Ryan Barrett
639ac2e527
ATProto.send: translate delete actor to repo deactivate even if it's already deactivated
2024-11-25 12:22:35 -08:00
Ryan Barrett
9d3d1cf704
ATProto: log seqs of stored commits
2024-11-21 15:55:09 -08:00
Ryan Barrett
6f7ec03713
ATProto.send: hard-code app.bsky.actor.profile to use self as tid
2024-11-15 07:58:54 -08:00
Ryan Barrett
7a280d1c56
ATProto.create_for tweak for when the repo already exists
...
fixes https://console.cloud.google.com/errors/detail/CPDO7I_Sg6q3sAE;locations=global;time=P30D?project=bridgy-federated
2024-11-14 12:06:25 -08:00
Ryan Barrett
aa32726141
re-activate tombstoned bridged Bluesky accounts by recreating them from scratch
...
...with a new DID etc. for #1446
2024-11-14 11:38:43 -08:00
Ryan Barrett
faea8ce1ad
ATProto.set_username bug fix, don't set the user's obj to their bridged DID doc 🤦
...
for #1474
2024-11-13 16:24:22 -08:00
Ryan Barrett
5e49656099
ATProto.handle_to_id: reuse DatastoreClient.resolve_handle
2024-11-07 20:52:03 -08:00
Ryan Barrett
da3d233754
ATProto.DatastoreClient.resolve_handle: prefer non-tombstoned repos
...
for #1446
2024-11-07 07:35:11 -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
2d0e825c51
dms: minor tweaks to help text, add DID to username instructions
...
for #826
2024-10-29 10:43:25 -07:00
Ryan Barrett
2cd127bb5a
/update-profile: for Web users, try to set ATProto handle to domain
...
for #826
2024-10-28 21:23:11 -07:00
Ryan Barrett
c0f8945989
ATProto.set_username: fetch new DID doc; User.handle_as: use handle in DID doc
...
for #826
2024-10-28 18:23:21 -07:00
Ryan Barrett
cb27835c0b
ATProto.set_username: emit #identity event over firehose
...
for #826
2024-10-27 21:48:32 -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
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