Ryan Barrett
|
fe3a9b693c
|
User.get_or_create: load user profile object, fetch if it doesn't exist
|
2023-10-19 15:01:19 -07:00 |
Ryan Barrett
|
9e1acf1cf7
|
replace copy ids with originals in Protocol.load
honestly not sure if this is necessary yet, and it's moderately expensive, two serial datastore queries with an IN filter. we'll see.
|
2023-10-18 11:18:20 -07:00 |
Ryan Barrett
|
efdf84a023
|
Protocol.receive: replace copy ids with originals, related bug fixes
|
2023-10-18 11:03:22 -07:00 |
Ryan Barrett
|
ff88c082ef
|
try not clearing Object.bsky
now that we're starting to replace copies with originals in ids, actors, etc, it'd be nice to preserve the original source object data.
|
2023-10-18 11:03:22 -07:00 |
Ryan Barrett
|
96b84511eb
|
add Object.replace_copies_with_originals
|
2023-10-18 11:03:22 -07:00 |
Ryan Barrett
|
fc96959383
|
tone down logging, especially for polling ATProto notifs
|
2023-10-18 11:03:21 -07:00 |
Ryan Barrett
|
f292a7d957
|
authorization: allow actor to update/delete itself
for #566
|
2023-10-16 12:25:29 -07:00 |
Ryan Barrett
|
66cf3bfd42
|
bug fix for 55c8d9b
|
2023-10-16 06:54:06 -07:00 |
Ryan Barrett
|
55c8d9bec6
|
authorization: log updates, deletes, creates from the wrong actor
for #566. just logging for now, want to see if we're already hitting this at all.
|
2023-10-16 06:37:52 -07:00 |
Ryan Barrett
|
d0da119b07
|
add opt out via #nobridge or #nobot text in user profile bio
fixes #666
(unfortunate issue number 😆)
|
2023-10-13 12:36:31 -07:00 |
Ryan Barrett
|
ff168231d6
|
Object.actor_link: add image kwarg
|
2023-10-12 10:37:22 -07:00 |
Ryan Barrett
|
8f4c353936
|
Object.actor_link: add sized kwarg
|
2023-10-12 10:19:59 -07:00 |
Ryan Barrett
|
84e9b2bcfd
|
AP: strip @context from Object.as2 before storing in datastore
we don't do LD, and many other servers' @contexts are big, so this saves disk space.
fixes #426
|
2023-10-11 16:35:05 -07:00 |
Ryan Barrett
|
dfab9f55d1
|
user page redesign: Object.actor_link: load actor from datastore
for #442
|
2023-10-11 12:25:39 -07:00 |
Ryan Barrett
|
bd19cab870
|
Object.actor_link bug fix: handle actor/author objects with only id field
for #442
|
2023-10-11 12:25:39 -07:00 |
Ryan Barrett
|
f37baeba58
|
user page redesign: misc tweaks
* separate source protocol from user in user labels
* make bridged protocol labels generic
* other visual tweaks
for #442
|
2023-10-11 12:25:39 -07:00 |
Ryan Barrett
|
c1e0a08f72
|
user page redesign: add home, notifications pages
for #442
|
2023-10-11 12:25:38 -07:00 |
Ryan Barrett
|
afa16d3864
|
start redesigning user pages
for #442
|
2023-10-11 12:25:38 -07:00 |
Ryan Barrett
|
1b78e86e6c
|
add Protocol.LOGO_HTML constant, change user page to link to external user
for #442
|
2023-10-11 12:25:38 -07:00 |
Ryan Barrett
|
f1bb2df2ce
|
Object: don't log "wiping out existing [data field]
|
2023-10-09 16:41:05 -07:00 |
Ryan Barrett
|
5efd97d867
|
add Object.lock and new add, remove, and put methods
|
2023-10-07 13:51:59 -07:00 |
Ryan Barrett
|
37188f3cca
|
User.get_or_create: if propagate=True, always reload user profile remotely
|
2023-10-07 11:51:21 -07:00 |
Ryan Barrett
|
62302b9105
|
more docstring formatting tweaks
|
2023-10-06 08:22:50 -07:00 |
Ryan Barrett
|
db29ad7757
|
docs: fix docstring formatting, other tweaks
|
2023-10-05 23:32:31 -07:00 |
Ryan Barrett
|
7d8b1ba2e8
|
add fetch_blobs kwarg to Object.as_bsky
|
2023-10-05 15:47:04 -07:00 |
Ryan Barrett
|
e96ab4654f
|
move creating ATProto users from User.get_or_create to new ATProto.create_for
|
2023-10-04 12:44:14 -07:00 |
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 |