Wykres commitów

64 Commity (0484570fbe8be4462dd99a2a746409cc2bf4cd44)

Autor SHA1 Wiadomość Data
Ryan Barrett c0aa4b6ecd
ids.normalize_user_id: convert profile ids to user ids 2025-01-20 13:45:12 -08:00
Ryan Barrett 3bcde43697
not storing CRUD activities any more: populate Object.notify/feed
for #1360

getting closer...
2025-01-20 13:45:12 -08:00
Ryan Barrett d863add480
first pass at not storing CRUD activities any more
for #1360

good! but not done yet, need to fix populating Object.notify/feed, handling user vs profile ids
2025-01-20 13:45:12 -08:00
Ryan Barrett 36bbec3376
DMs: improve bot mention stripping
...to handle fully qualified fediverse handles, eg @bsky.brid.gy@bsky.brid.gy

for #1474
2024-11-12 14:25:58 -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 6b9bec1c0a
dms: add help command, bug fix for replying
for #826
2024-10-28 20:35:03 -07:00
Ryan Barrett 572b42d664
Object.get_or_create: auth check: normalize profile ids
handles eg www vs naked domain in web home page URLs
2024-10-28 15:49:16 -07:00
Ryan Barrett c648fb25ca
tests: remove more Fake routing special cases in Protocol.targets, handle_follow
for #1180
2024-10-10 17:19:02 -07:00
Ryan Barrett 5b75fa43d5
noop: tests: rename ExplicitEnableFake => ExplicitFake, eefake => efake 2024-10-08 15:03:43 -07:00
Ryan Barrett 5330dca6e2
refactor models.get_original* queries to cache more and query less
for #1149
2024-09-19 20:58:34 -07:00
Ryan Barrett 2fad8e1c24
Bluesky => fediverse: link mentions of non-bridged users to their bsky.app profile
fixes #1288
2024-09-17 13:53:30 -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 d9c641ac18
noop: ids: log details in protocol inference assert 2024-09-03 12:15:25 -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 73bb498505
ids: demote a couple log messages to debug 2024-08-06 11:05:40 -07:00
Ryan Barrett f7a495a417
ids: drop _NON_WEB_SUBDOMAIN_SITES, look up (and cache) individual Web users instead 2024-06-26 16:16:23 -07:00
Ryan Barrett 5266974731
Protocol.for_id: make Web own bot actor AP ids, not bot protocol 2024-06-02 08:21:18 -07:00
Ryan Barrett d6728a2e1b
Object.get_or_create authz check: allow a user to modify their profile object
for #566
2024-05-29 16:39:09 -07:00
Ryan Barrett 8f5d8221a9
add ids.profile_id, use everywhere
for #566
2024-05-29 16:18:15 -07:00
Ryan Barrett dd464ec6d3
add ids.normalize_user_id
for #566
2024-05-29 12:08:18 -07:00
Ryan Barrett ca24dfcb24
webfinger: cut logging way down 2024-05-28 21:14:33 -07:00
Ryan Barrett 2bf526ab7c
refactor validating handles in ATProto and elsewhere
for https://github.com/snarfed/bridgy-fed/issues/982
2024-05-03 15:18:16 -07:00
Ryan Barrett b8e67829e3
ids.translate_handle: validate ATProto handles
https://atproto.com/specs/handle#handle-identifier-syntax

for https://github.com/snarfed/bridgy-fed/issues/982
2024-05-03 14:51:26 -07:00
Ryan Barrett 4b95d49ccc
ids.translate_handle: convert _ and ~ chars to - for Bluesky
hopefully fixes #982
2024-05-02 15:41:41 -07:00
Ryan Barrett c065c712f1
more id/handle translation tweaks for protocol bot users
hopefully fixes Accept actor for responding to bot user follows in AP
2024-04-25 14:29:48 -07:00
Ryan Barrett 0238b46e36
add Protocol.HAS_COPIES, use to generate ids.COPIES_PROTOCOLS 2024-04-23 16:52:53 -07:00
Ryan Barrett c86c91b25b
User.enable_protocols bug fix: only call create_for for copy protocols
also add integration test for following protocol bot user from ATProto
2024-04-23 16:38:08 -07:00
Ryan Barrett ce23a72549
make ids.translate_handle support protocol bot users 2024-04-23 15:01:40 -07:00
Ryan Barrett c87e69d354
bug fix for ids.web_ap_base_domain
...and test it properly instead of mocking out the constant
2024-04-22 15:15:27 -07:00
Ryan Barrett 34692abc60
handle protocol bot users in webfinger, ids.translate_handle, Web.owns_handle
for #880
2024-04-22 14:01:09 -07:00
Ryan Barrett ed78090d2c
expand User.ap_subdomain to allow protocol subdomains like bsky
part of setting up per-protocol bot users for #880
2024-04-22 11:12:03 -07:00
Ryan Barrett 10023d17fd
Protocol.enable_protocol: create copy user if necessary 2024-04-21 12:18:12 -07:00
Ryan Barrett 6b597c90c3
User.get_or_create: abstract propagate and create_for across protocols 2024-04-21 11:40:13 -07:00
Ryan Barrett 0c37d94191
ids.translate_* noop refactoring: from_proto => from_, to_proto => to 2024-04-20 21:03:06 -07:00
Ryan Barrett 259b7d72dd
start on conditional opt in
* add Protocol.DEFAULT_ENABLED_PROTOCOLS
* add User.enabled_protocols
* move common.is_enabled to Protocol.is_enabled_to, include opt out/in
2024-04-17 16:43:10 -07:00
Ryan Barrett 12a3bf0862
noop: add messages to asserts in ids, atproto 2024-04-15 16:44:33 -07:00
Ryan Barrett a45917cec8
ids.translate_object_id: normalize bsky.app profile URLs to DIDs 2024-04-09 10:04:16 -07:00
Ryan Barrett e3f2c2e0bc
ids.translate_user_id: normalize bsky.app profile URLs to DIDs 2024-04-09 09:48:16 -07:00
Ryan Barrett 675e39809e
web UI: tweak user links in user page header 2024-02-11 14:39:09 -08:00
Ryan Barrett ee213531c5
add scripts/opt_out.py
for #783
2024-01-27 14:10:51 -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 c816be48ba
ids.translate_handle: add enhanced kwarg
for #551
2023-11-29 16:41:09 -08:00
Ryan Barrett 4d095fa3d9
misc cleanup
* remove obsolete TODOs, commented out code
* remove obsolete circular imports of per-protocol modules
* minimize Object put in Protocol.load
* remove duplicated Protocol.load tests in test_activitypub
* re-enable rest of ActivityPubUtilsTest.test_postprocess_as2_idempotent
* drop default cls=Web in TestCase.make_user
2023-11-15 14:23:08 -08:00
Ryan Barrett bca034c4f8
ids: use subdomain-wrapped URLs to convert ATProto to Web/AP 2023-11-06 20:17:23 -08:00
Ryan Barrett 98bb29b333
drop Object.proxy_url, switch callers to ids.translate_object_id 2023-11-06 12:18:11 -08:00
Ryan Barrett cada99e407
ids.translate_user_id: follow use_instead 2023-11-03 14:53:19 -07:00
Ryan Barrett 6410d0ef1a
ids.translate_object_id: special case Web => AP
also preserve local hosts
2023-11-03 11:37:36 -07:00
Ryan Barrett 37d8b5d4fc
ids.translate_user_id: for Web, normalize home page URLs to domains 2023-11-03 11:00:34 -07:00
Ryan Barrett 0725b72812
ids.translate_user_id: special case Web => AP to fed.brid.gy/domain 2023-11-03 06:53:33 -07:00