Wykres commitów

1210 Commity (b0f6b1799bfea531b0f95364e837ff44db2053af)

Autor SHA1 Wiadomość Data
Ryan Barrett 07b8a3de1d
User.enable_protocol: fill in real welcome DM message
for #1024, #966, etc
2024-08-08 22:21:40 -07:00
Ryan Barrett 925771562f
add Protocol.SUPPORTS_DMS
for #1024, #966, etc
2024-08-08 20:41:57 -07:00
Ryan Barrett cd0a4bce9e
AP: add outbound DM support
for #1024, #966, etc
2024-08-08 20:35:56 -07:00
Ryan Barrett 23aa24eb4f
User.enable_protocol: send welcome DM
via new Protocol.bot_dm method

for #1024, #966, etc
2024-08-08 20:17:06 -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 356903c3e9
test_pages: test www special case domains
for #1244
2024-08-08 20:16:17 -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 a49fa0d5e0
ids.translate_handle: test AP => ATProto error for leading/trailing dash 2024-08-07 13:09:37 -07:00
Ryan Barrett 479acea657
move Web.verify from /web-site handler to Web.get_or_create
for #1232
2024-08-06 11:07:13 -07:00
Ryan Barrett 5f1a99d6cd
Protocol.translate_ids: support multiple objects 2024-08-05 21:22:41 -07:00
Ryan Barrett 124718ecc7
ATProto.create_report bug fix: include JWT 2024-08-05 19:38:52 -07:00
Ryan Barrett 978f1f7019
noop: activitypub: existing server actor test, ignore 'ap' protocol label 2024-08-05 19:20:57 -07:00
Ryan Barrett 29482d1c66
AP: automatically bridge server/instance actors
for #1184
2024-08-05 13:34:55 -07:00
Ryan Barrett 6a0a0fbdc6
webfinger: don't serve domain@domain for web users without redirects
for #911, #1025
2024-08-05 13:34:54 -07:00
Ryan Barrett 5679d696a4
cache models.get_originals in memory
for #1149
2024-08-01 16:20:13 -07:00
Ryan Barrett 001bade672
test noop: switch test_cache_policy to use ndb keys, not datastore API keys
https://github.com/googleapis/python-ndb/issues/987
2024-08-01 12:51:50 -07:00
Ryan Barrett e9dc38c75c
actually turn on ndb global cache with global_cache_policy
🤦
2024-08-01 12:42:13 -07:00
Ryan Barrett 4097fe71fb
use ndb in-memory context cache for DID doc Objects
for #1149
2024-08-01 12:09:37 -07:00
Ryan Barrett d769d03a4f
Protocol.check_supported: block DMs (for now) 2024-07-31 23:12:47 -07:00
Ryan Barrett 22570881b7
fix tests for 3529216 2024-07-31 09:23:12 -07:00
Ryan Barrett 3529216e5d
disable caching get_originals (88cbe3b) until bugs are fixed
for #1149
2024-07-31 09:14:31 -07:00
Ryan Barrett 88cbe3b7b4
cache models.get_originals in memcache with new memcache_memoize decorator
for #1149
2024-07-30 14:50:33 -07:00
Ryan Barrett 33e0d0b14a
common.memcache_key: encode Unicode chars as UTF-8 2024-07-30 14:49:50 -07:00
Ryan Barrett 773a6055fc
Fake: support Flag 2024-07-28 10:15:37 -07:00
Ryan Barrett caa8dd2341
Protocol.delete_user_copy: use better id for delete activity
that's more likely to pass Protocol.owns_id for all protocols. (this was failing ATProto)
2024-07-27 16:40:56 -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 37e70104e5
drop unused protocol.seen_ids, we switched it to memcache a bit ago 2024-07-24 14:58:25 -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 f34d1b43a3
User.status: make opt in override #nobot but not #nobridge
for #1204, re #974
2024-07-23 13:54:24 -07:00
Ryan Barrett 4e958f68e2
Web feed polling: don't use user profile images as post metaformats images
for #1191
2024-07-23 13:05:27 -07:00
Ryan Barrett 56cb6378d4
test_web: fix tests to include requests.get responses for fetching posts for images
tests weren't broken, technically, but BeautifulSoup was complaining. for 45df0ea
2024-07-23 12:13:19 -07:00
Ryan Barrett b90cdefacf
Web.fetch bug fix: only default metaformats on for home pages
fixes 45df0ea
2024-07-23 11:54:56 -07:00
Ryan Barrett 755997e5f7
atproto_firehose: don't load DIDs for tombstoned AtpRepos
for #1193
2024-07-22 22:24:13 -07:00
Ryan Barrett 5bcb230d39
drop /bridge-user 2024-07-22 20:45:22 -07:00
Ryan Barrett 45df0ea410
Web feed polling: if an entry doesn't have an image, fetch it from metaformats 2024-07-22 18:11:49 -07:00
Ryan Barrett 746c57a931
/convert: handle Bluesky objects that we can't (yet) convert to AS1
fixes https://console.cloud.google.com/errors/detail/CICesouJo-PV7AE;time=P30D?project=bridgy-federated
2024-07-18 09:56:54 -07:00
Ryan Barrett 37076841d4
update test for snarfed/granary@e93dbd241f 2024-07-17 09:57:04 -07:00
Ryan Barrett 075c33cade
memcache: encode spaces in keys as %20
fixes https://console.cloud.google.com/errors/detail/CNPzqYzWg4_TyQE;time=P7D?project=bridgy-federated
2024-07-16 13:48:52 -07:00
Ryan Barrett 0a22643cef
User.get_or_create: merge enabled_protocols
for #1034
2024-07-15 20:09:20 -07:00
Ryan Barrett ee62334a93
turn on web <=> Bluesky!
for #1034
2024-07-15 19:40:10 -07:00
Ryan Barrett 1a23d8eba3
Protocol.targets: when adding in-reply-to, check from user's enabled protocols
fixes https://console.cloud.google.com/errors/detail/CMHloZaRmPXQZQ;time=P7D?project=bridgy-federated
2024-07-14 13:42:38 -07:00
Ryan Barrett 2a83cbb0d8
Protocol.targets: bug fix for self replies
this bug snuck in because of our special case handling of Fake and OtherFake in Protocol.targets. ugh. need to get rid of that, and elsewhere, eg ids.*.

fixes #1179
2024-07-13 12:58:06 -07:00
Ryan Barrett 1f73058ef6
Protocol.receive, ActivityPub.inbox: consolidate memcache key for seen activities 2024-07-12 08:21:30 -07:00
Ryan Barrett 06f3694c9d
Protocol.receive: return HTTP 299 for deterministic errors to prevent retries
for https://github.com/snarfed/bridgy-fed/issues/1063
2024-07-10 21:04:04 -07:00
Ryan Barrett 89e2372922
Protocol.receive: detect and prevent duplicate calls for the same object
for https://github.com/snarfed/bridgy-fed/issues/1063, should fix it. coming up with the test for this was fun!
2024-07-10 20:59:03 -07:00
Ryan Barrett 714c317dd4
Protocol.targets: only deliver reposts, replies etc if the original post was bridged
for #1166, #1151, maybe others. #1151 is the big motivation here: that we're currently generating and sending Bluesky a ton of reposts with blank subject cid/URL, which afaict is the main reason bridging is getting stuck for some accounts and the relay is constantly calling `getRepo`. I'm hoping this will reduce or eliminate that.

this isn't a big behavior change, but it is a kind of big change to routing logic. it's tested pretty well, but I still expect something to break. we'll see.
2024-07-09 17:29:02 -07:00