Ryan Barrett
ae25baba8c
drop obsolete User.href, it was only for OStatus
...
🫗
2023-10-04 12:30:20 -07:00
Ryan Barrett
f85ab9ef41
noop: add a couple minor tests and comments
2023-09-29 11:32:29 -07:00
Ryan Barrett
4b94b4397c
User.get_or_create: fetch and propagate user profile object
2023-09-29 11:32:28 -07:00
Ryan Barrett
bfabfabea7
move creating a new ATProto user from ATProto.send to User.get_or_create
...
in progress, still need to load user profile object and write it to ATProto repo
2023-09-29 11:32:28 -07:00
Ryan Barrett
ad0a942034
switch webfinger and AP actors to mostly protocol subdomains
...
except Web, it still mostly serves on fed.brid.gy for backcompat, don't want to change existing Web users' AP actor ids.
2023-09-26 16:43:48 -07:00
Ryan Barrett
a9fcc167f6
replace User.readable_id computed property with handle
2023-09-25 15:08:14 -07:00
Ryan Barrett
1a003c8c5b
refactor User.ap_address implementations to highlight similarities
2023-09-25 14:16:14 -07:00
Ryan Barrett
9b8b02e99f
consolidate ap_address in ATProto, Fake, Web (partially) into User
2023-09-25 12:45:47 -07:00
Ryan Barrett
e9e8827ef9
standardize more on 'handle' and 'id' terms
...
* User.readable_id => handle
* User.readable_or_key_id => handle_or_id
2023-09-25 12:33:24 -07:00
Ryan Barrett
6cdb04b53f
replace User.atproto_handle with handle_as('atproto')
2023-09-25 10:58:05 -07:00
Ryan Barrett
40ba007e9e
add User.handle()
2023-09-25 10:58:05 -07:00
Ryan Barrett
021df15f7e
Object.as1 from bsky: pass repo DID, handle, PDS to granary
2023-09-24 20:02:09 -07:00
Ryan Barrett
452e49134d
add User.profile_id, implement in ATProto
2023-09-22 15:40:22 -07:00
Ryan Barrett
0d2ec18edd
add ids.convert_handle
2023-09-22 11:42:08 -07:00
Ryan Barrett
e967bb4ada
start centralizing id conversion into new ids.py file
2023-09-22 11:42:08 -07:00
Ryan Barrett
c1880569b8
User.get_by_copy => get_by_copies
2023-09-19 21:12:53 -07:00
Ryan Barrett
5107d003fe
Object.as1: genericize converting actor/author id from copy to original
2023-09-19 19:59:28 -07:00
Ryan Barrett
134416cd7b
genericize User.get_by_atproto_did to get_for_copy
2023-09-19 16:48:16 -07:00
Ryan Barrett
bb18b5ee0d
add new User.copies property
2023-09-19 16:07:11 -07:00
Ryan Barrett
dcbf16db6e
Object.as1 conversion from bsky, injecting actor/author
...
prefer user id to profile object id, default to AT URI repo DID
2023-09-18 11:52:17 -07:00
Ryan Barrett
5b16386fbc
User.get_by_atproto_did and Object.as1 from bsky: support native ATProto users
2023-09-18 11:41:01 -07:00
Ryan Barrett
a723be660e
Object.as1: inject actor/author when converting from bsky objects
...
...since they imply actor/author in the AT URI's repo DID.
2023-09-18 11:23:11 -07:00
Ryan Barrett
48e47f5f7d
add User.get_by_atproto_did
2023-09-17 22:38:33 -07:00
Ryan Barrett
b45635b125
noop: move canonicalizing AT URIs TODO from ATProto to Object
2023-09-14 16:52:22 -07:00
Ryan Barrett
077b5a97bc
ATProto.send: populate Object.copies with local record's AT URI
2023-09-14 10:20:04 -07:00
Ryan Barrett
d3b3ff47f5
atproto: start on polling notifications
...
lots more to do here, 8 new TODOs in this commit 😆
2023-09-14 09:42:11 -07:00
Ryan Barrett
61b585e715
for Objects for ATProto records, require at:// URIs to have DID repos
...
don't allow handles. https://atproto.com/specs/at-uri-scheme
2023-09-13 12:51:34 -07:00
Ryan Barrett
165a403353
drop User.k256_pem, use arroba's AtpRepo.signing_key/rotation_key instead
2023-09-08 21:52:46 -07:00
Ryan Barrett
6ea7813242
start on new hub service for ATProto and eventually Nostr websockets
2023-09-05 12:06:07 -07:00
Ryan Barrett
abf583952c
first pass at ATProto.send
2023-09-01 12:07:21 -07:00
Ryan Barrett
3ff42f0cd4
User.p256_key = k256_key, for ATProto
2023-09-01 07:51:23 -07:00
Ryan Barrett
fd4b40fe7c
implement default User.ap_actor()
2023-08-31 11:49:10 -07:00
Ryan Barrett
e18dabf510
implement ATProto.target_for, .fetch for at:// URIs
2023-08-31 10:48:28 -07:00
Ryan Barrett
96b63487fa
implement ATProto.fetch for DIDs
2023-08-30 20:59:53 -07:00
Ryan Barrett
6cddd95686
AP: always populate inbox and outbox in actors
...
required by AP! https://www.w3.org/TR/activitypub/#actor-objects
for #614
2023-08-19 15:12:46 -07:00
Ryan Barrett
53518a3e4d
AP: handle Follow activities sent to shared inbox
...
fixes https://console.cloud.google.com/errors/detail/CKCyj4Cml--vUw;time=P30D?project=bridgy-federated
2023-08-09 11:26:36 -07:00
Ryan Barrett
9211aa3cae
bug fixes for Object.clear and get_or_create
...
be more careful about clearing and preserving as2/mf2/bsky/our_as1 properties
discovered by @jamietanna, thanks for reporting Jamie!
2023-08-08 10:26:00 -07:00
Ryan Barrett
96e523d887
fix Object.proxy_url to use per-protocol subdomains
...
it should have already been using them!
for #600
2023-07-26 09:02:23 -07:00
Ryan Barrett
b57c96d7d5
move AtpNode to arroba
2023-07-26 09:02:23 -07:00
Ryan Barrett
850e8a1dc8
switch convert URLs from ^^ back to #
...
for #581 . the ^^s didn't help with WordPress, which was the original motivation, and they're confusing everyone else.
2023-07-24 14:31:07 -07:00
Ryan Barrett
95cbfba31c
Web: default missing author to homepage, not fed.brid.gy AP actor URL
...
for #599
2023-07-24 12:17:03 -07:00
Ryan Barrett
57350ab81a
switch from Object.users + labels to users + notify + feed lists
...
needed to distinguish an activity's owners from who it should notify from who should see it in their feeds.
also, unrelated, start sending stop-following activities.
in progress, test_web and test_activitypub still need updating.
2023-07-17 05:34:56 -10:00
Ryan Barrett
89ff89ef30
merging receive: Object.as1: postprocess mf2, if no id, use url
...
for #529
2023-07-11 13:25:31 -07:00
Ryan Barrett
2c861dbbf4
merging receive: if incoming object has no id (eg web/mf2), default to URL
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
56ebdba049
merging receive: propagate new/changed from receive into new Object
...
for #529
2023-07-11 13:25:30 -07:00
Ryan Barrett
ee3a596dbb
Summary merging Protocol/Web receive: change receive to take Object
...
for #529
2023-07-11 13:25:29 -07:00
Ryan Barrett
3f9ee02126
Object.get_or_create: populate .new and .changed
2023-07-11 13:25:29 -07:00
Ryan Barrett
3ceeae418f
add Object.activity_changed
2023-07-11 13:25:29 -07:00
Ryan Barrett
80e63e0fe9
add Object.get_or_create
2023-07-11 13:25:29 -07:00
Ryan Barrett
08d8c163e5
prune down logging of object writes
2023-07-11 13:25:28 -07:00