Wykres commitów

823 Commity (redesign-v3-text-instructions)

Autor SHA1 Wiadomość Data
Ryan Barrett e9a8d81d43
testutil noop: remove unused import 2023-12-29 21:00:08 -08:00
Ryan Barrett 94b821bef5
test_ids: fix shadowed test method
woo, thanks for the catch flake8!
2023-12-24 10:26:12 -08:00
Ryan Barrett 199fb65dd6
ids.translate_object_id: handle Web.ap_subdomain
for https://github.com/snarfed/bridgy-fed/discussions/768
2023-12-24 10:20:04 -08:00
Ryan Barrett 2fafd83344
ids.translate_user_id: handle Web.ap_subdomain
for https://github.com/snarfed/bridgy-fed/discussions/768
2023-12-24 10:04:01 -08:00
Ryan Barrett b999cfe59a
ActivityPub.convert bug fix: don't call postprocess_as2_actor without user
fixes https://console.cloud.google.com/errors/detail/CKmOubHj-8H84AE;time=P30D?project=bridgy-federated
2023-12-14 15:48:02 -08:00
Ryan Barrett 07177e7d93
fix tests for lexrpc v0.5 2023-12-14 15:46:54 -08:00
Ryan Barrett 79af59b951
upgrade mf2py to 2.0.1, add test for resolving relative URLs in content
fixes #390, re https://github.com/microformats/mf2py/issues/181 . thank you again @angelogladding!
2023-12-08 10:02:07 -08:00
Ryan Barrett afc2511e62
refactor follow/unfollow web UI to use Protocol.receive 2023-12-06 10:11:36 -08:00
Ryan Barrett cf17c5ce47
disable superfeedr subscribe/unsubscribe
for #550
2023-12-05 13:07:21 -08:00
Ryan Barrett 8f3b4c1c9b
Web: ignore superfeedr subscribe failures
it's pretty unreliable right now 😕

for #550
2023-12-05 13:07:17 -08:00
Ryan Barrett 0e5866dbd9
Object.as1 from atom: override more ids with urls when necessary 2023-12-05 12:39:40 -08:00
Ryan Barrett b7129703cd
Web: don't subscribe to Superfeedr if user has webfinger redirects
for #550
2023-12-05 09:28:19 -08:00
Ryan Barrett 9a088f5b7f
Web: unsubscribe from superfeedr on first webmention
for #550
2023-12-05 08:59:29 -08:00
Ryan Barrett d14b1bc04c
add Web.maybe_superfeedr_unsubscribe
for #550
2023-12-05 08:51:27 -08:00
Ryan Barrett b0f278e033
Web: when subscribing to superfeedr, handle returned posts
for #550
2023-12-05 06:52:33 -08:00
Ryan Barrett 8650a90bf5
Web: integrate superfeedr subscribe into get_or_create
for #550
2023-12-04 11:34:19 -08:00
Ryan Barrett ba010e74b0
Web.maybe_superfeedr_subscribe: add feed discovery
for #550
2023-12-04 11:18:00 -08:00
Ryan Barrett eb4e11ae3d
Web: add superfeedr_subscribed prop, populate it in maybe_superfeedr_subscribe
for #550
2023-12-04 10:54:49 -08:00
Ryan Barrett b113521f94
Web: start on Superfeedr subscribe
for #550
2023-12-04 10:35:05 -08:00
Ryan Barrett 637128a05c
add Web.last_webmention_in property
for #550
2023-12-03 21:46:31 -08:00
Ryan Barrett c54df36164
start to add superfeedr notify handler
for #550
2023-12-02 21:18:22 -08:00
Ryan Barrett 5485cbeece
Object.as1 from atom: extract object, override id with url 2023-12-02 20:56:07 -08:00
Ryan Barrett e217419747
add Object.atom property
for #550
2023-12-02 14:30:14 -08:00
Ryan Barrett 2c19a5a3af
drop obsolete unwrap in Object.as1 when converting from as2 2023-12-02 14:25:38 -08:00
Ryan Barrett d0f7264db7
webfinger: handle users without handles
fixes https://console.cloud.google.com/errors/detail/CJ7P7OGD5oz_Dw;time=P30D?project=bridgy-federated
2023-12-01 15:46:37 -08:00
Ryan Barrett d538928fe6
activitypub.postprocess_as2_actor: bug fix for publicKey w/Web.ap_subdomain 2023-12-01 13:06:59 -08:00
Ryan Barrett 2f4bae8dc9
change Web.ap_subdomain default to 'web' 2023-11-30 20:08:41 -08:00
Ryan Barrett 6e236e2d70
switch User.ap_actor to id_as, use Web.ap_subdomain property 2023-11-30 17:10:18 -08:00
Ryan Barrett d33832be1c
add Web.ap_subdomain property, use it in webfinger
Originally, BF served Web users' AP actor ids on fed.brid.gy, eg
https://fed.brid.gy/snarfed.org . When we started adding new protocols, we
switched to per-protocol subdomains, eg https://web.brid.gy/snarfed.org .
However, we need to preserve the old users' actor ids as is. So, this property
tracks which subdomain a given Web user's AP actor uses.
2023-11-30 15:43:38 -08:00
Ryan Barrett e03a2b6517
update tests for moving metaformats h-card code to webutil
for snarfed/webutil@f4d35301f6
2023-11-30 14:43:06 -08:00
Ryan Barrett 520b2fd3b0
User.ap_address() => handle_as(ActivityPub) 2023-11-29 21:06:55 -08:00
Ryan Barrett a5f9daa46f
change Web.ap_address to use has_redirects instead of direct
for #551
2023-11-29 16:41:11 -08:00
Ryan Barrett c816be48ba
ids.translate_handle: add enhanced kwarg
for #551
2023-11-29 16:41:09 -08:00
Ryan Barrett e079cec77c
ActivityPub.convert: omit acct: URIs
for #738, https://github.com/Automattic/wordpress-activitypub/issues/571
2023-11-29 14:51:56 -08:00
Ryan Barrett 911814dba2
Web.fetch: use util.parse_mf2's new metaformats support 2023-11-29 13:21:13 -08:00
Ryan Barrett 18f79d2626
Web: start adding metaformats support
for #551
2023-11-29 12:00:48 -08:00
Ryan Barrett aaf115347e
add manual opt-out list 2023-11-29 10:25:45 -08:00
Ryan Barrett 62ca4022fb
stop clearing Object data properties
...so that we have original data preserved when we override it in our_as1. fixes #721
2023-11-28 06:39:34 -08:00
Ryan Barrett 1ec1fc2482
genericize user handles on UI follower/following pages 2023-11-27 21:40:01 -08:00
Ryan Barrett 004726d397
fix followers/ing UI page for AP users
fixes #718
2023-11-27 21:01:02 -08:00
Ryan Barrett ee373095e2
send follow accepts to protocols that support them
for #710
2023-11-27 16:32:22 -08:00
Ryan Barrett 8f7facda97
don't automatically accept follows from protocols that support them natively
for #710. adds per-protocol `HAS_FOLLOW_ACCEPTS` constant
2023-11-27 14:44:05 -08:00
Ryan Barrett 443506c425
activitypub.postprocess_as2_actor: remove obsolete wrap kwarg 2023-11-27 11:51:52 -08:00
Ryan Barrett 8f0d2d8650
AP: handle opted out users in following/ers, outbox collections 2023-11-27 11:32:30 -08:00
Ryan Barrett fe8b710cce
User.get_by_id: handle opt-out 2023-11-27 11:28:05 -08:00
Ryan Barrett b81fa2090b
Protocol.receive: handle opted out users 2023-11-27 06:53:22 -08:00
Ryan Barrett dd62f472da
User.get_or_create: return None if opted out 2023-11-27 06:53:22 -08:00
Ryan Barrett d79e2badf4
fix tests for dc3b23f80b 2023-11-26 21:39:31 -08:00
Ryan Barrett dc3b23f80b
Web.fetch: ignore uid if set; we use URL as id
props and thanks to @fluffy-critter for being my unintentional edge case QA department 😆🙏

fixes https://console.cloud.google.com/errors/detail/CKLuk-v4x8X0NQ;time=P30D?project=bridgy-federated
2023-11-26 16:31:29 -08:00
Ryan Barrett d7d55864ad
activitypub.actor bug fix: handle opted out users
fixes https://console.cloud.google.com/errors/detail/CKOs59zx0rSXQg;time=P30D?project=bridgy-federated
2023-11-26 15:44:43 -08:00