Wykres commitów

101 Commity (main)

Autor SHA1 Wiadomość Data
Ryan Barrett 2aa726ea57
fix IntegrationTests.test_activitypub_enable_atproto_custom_handle_domain for d5cae3dbc0 2025-06-24 15:50:06 -07:00
Ryan Barrett de0afca37e
ATProto: add atproto_handle_domains.txt for domains that get automatic custom handles
for #1305
2025-06-21 18:14:50 -07:00
Ryan Barrett 09b4a5cdfb
Protocol.targets: skip followers on protocols with user-independent targets
eg ATProto, the target is always our PDS. also add a new Protocol.DEFAULT_TARGET constant for these protocols.

for #1511
2025-06-10 11:41:38 -07:00
Ryan Barrett 7eeb6b8d74
update tests for AP class="quote-inline"
snarfed/granary@9595a613b5
https://github.com/snarfed/bridgy-fed/issues/1956
2025-06-07 12:52:27 -07:00
Ryan Barrett 84e965de40
update tests for snarfed/granary@9beb59b5f9 2025-05-28 07:08:34 -07:00
Ryan Barrett 388b265bd6
move notif code from memcache and dms into new notifications.py file 2025-05-27 21:54:12 -07:00
Ryan Barrett 67e3d096bb
integration test that an activity from a disabled user doesn't re-enable them
for #1929, 37096e2
2025-05-16 16:30:59 -07:00
Ryan Barrett d14ad89960
AP: add split domain support via full webfinger resolution
implemented in ActivityPub.reload_profile, based on https://www.w3.org/community/reports/socialcg/CG-FINAL-apwf-20240608/#reverse-discovery and https://correct.webfinger-canary.fietkau.software/#developers . thanks @jfietkau! for #1031
2025-05-16 11:12:15 -07:00
Ryan Barrett 55320bab77
dms: add published field to note object and create activity
for #1924
2025-05-14 19:53:44 -07:00
Ryan Barrett c16be614ed
fix tests for snarfed/lexrpc@edfcb07468 2025-05-09 09:26:05 -07:00
Ryan Barrett 5f6410d911
User.reload_profile(): always write user so that computed properties are re-populated 2025-03-27 18:30:17 -07:00
Ryan Barrett e3452ea4b4
Web.fetch: preserve acct: u-urls for custom usernames
cc @aciccarello
2025-03-18 12:29:11 -07:00
Ryan Barrett a8b301fff2
update tests for snarfed/lexrpc@1b8ebd438c 2025-02-17 08:59:49 -08:00
Ryan Barrett 880cb487c0
activitypub.postprocess_as2: use as2.set_content to keep contentMap in sync
for #1609
2025-02-07 12:30:01 -08:00
Ryan Barrett e7eca335a1
integration test for converting AP contentMap to HTML
for #1609, snarfed/granary@dd071c857c
2025-02-06 22:38:40 -08:00
Ryan Barrett 6be749e386
activitypub.postprocess_as2: when adding <p> to content, also add to contentMap
for #1609
2025-02-06 21:59:04 -08:00
Ryan Barrett 1be35439e3
add integration tests for replies from non-bridged users
for #758 etc
2025-02-06 12:13:47 -08:00
Ryan Barrett 0a2e29010f
add more specific User.status values, DM users when they can't opt in
also allow more inbound activities from ineligible users, eg when they're just following a bridged user

for #758, #1135, #1005
2025-02-06 09:24:43 -08:00
Ryan Barrett 5adda40c8a
test_integrations: update for class="hashtag" in content
for snarfed/granary@0b17840e6f
2025-02-05 16:18:39 -08:00
Ryan Barrett 264905ac20
Protocol.receive bug fix: preserve actor id if we fetch actor profile
we were accidentally using the profile id, which broke some ATProto => AP delivery, #1720
2025-01-27 14:48:07 -08:00
Ryan Barrett 893f8d1b22
tests noop: move ActivityPub.assert_deliveries => TestCase.assert_ap_deliveries 2025-01-27 14:48:07 -08:00
Ryan Barrett f03057502a
start all synthetic id fragments with #bridgy-fed-... 2025-01-18 12:16:47 -08:00
Ryan Barrett 4ea60ad9ef
tests for bsky.app hashtag search URLs in ATProto => ActivityPub convert
for #1634
2024-12-17 14:28:34 -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 2eca1c074c
AP: strip internal content_is_html field before sending activities
for #1584, maybe
2024-12-02 12:44:26 -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 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 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 f57951d5d8
require web users to have an Atom or RSS feed or webmentions
for #1458
2024-11-24 21:03: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 6879702ab2
update tests for snarfed/granary@647e482 : add class="mention" to mention links in HTML content
for #887
2024-11-06 10:22:59 -08:00
Ryan Barrett 3ffe589e96
AP: put Accept activity id on same BF domain as actor
for #1093
2024-11-01 21:29:51 -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 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 2a13b83084
ATProto: reload DID doc along with profile when necessary
for #1334
2024-10-03 17:06:46 -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 4d3af38b25
update test_atproto for lexrpc schema validation 2024-09-27 15:02:48 -07:00
Ryan Barrett ba9cee0d8c
switch integration tests from atproto_firehose.handle to subscribe
...so that they test subscribe's filtering logic
2024-09-23 15:33:21 -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 ffb4459545
revise AP Delete => Bluesky tombstone flow, add integration test
for #1304
2024-09-13 21:43:38 -07:00
Ryan Barrett cfaacb8ff5
stop unwrapping ids etc in ActivityPub.inbox, do it in Object.as1 instead
for #12
2024-09-13 13:09:22 -07:00
Ryan Barrett 16a9a5b29e
add rel=me to user page links
for #1309
2024-09-09 08:29:19 -07:00
Ryan Barrett 9496957819
atproto_firehose: move CPU-bound filtering back onto main subscribe thread
effectively reverts 5b280dc235 and e7c6ced26a

for #1295
2024-09-06 18:45:40 -07:00
Ryan Barrett 5b280dc235
atproto_firehose: move most logic from subscribe to handle
trying to offload more CPU from the firehose client. for #1266
2024-09-03 12:15:25 -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 150598d761
User.user_link: refactor to get rid of extra spaces 2024-08-25 09:48:32 -07:00
Ryan Barrett e2b6b59ff4
activitypub.postprocess_as2: for Create/Update, put object's to/cc into activity
for possible Pleroma/Akkoma interop:
https://git.pleroma.social/pleroma/pleroma/-/issues/3206#note_108296
https://indieweb.social/@diego@lounge.collabfc.com/112977955332152430
2024-08-21 11:39:06 -07:00
Ryan Barrett 6675d9805c
User.user_link: add name, handle, pictures, proto kwargs, remove maybe_internal_link 2024-08-21 07:55:09 -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