Ryan Barrett
79e5d2be07
bug fix for User.status handling: check for false-ness, not is None
...
we have some users in the datastore with status None, some with False. 😕 fixes #1048
2024-05-12 19:02:07 -07:00
Ryan Barrett
078bef041e
turn on REQUIRES_AVATAR/NAME for ActivityPub, Bluesky
2024-05-11 16:50:57 -07:00
Ryan Barrett
eea8779872
ATProto firehose: subscribe at stored cursor + 1
...
for #978
2024-05-09 08:44:30 -07:00
Ryan Barrett
87165497f0
misc noop langauge changes in comments and docs, eg BGS => relay
2024-05-09 06:43:51 -07:00
Ryan Barrett
b788105a71
ATProto firehose: start implementing cursor
...
for #978
2024-05-08 21:35:03 -07:00
Ryan Barrett
ca8e70de6a
ATProto: switch polling getAuthorFeed to posts_with_replies
...
for #1011 , #1018
2024-05-07 08:16:41 -07:00
Ryan Barrett
c98d8fce00
switch ATProto polling from cursor to indexedAt
...
for #954
2024-05-05 07:31:12 -07:00
Ryan Barrett
6f0f53bdb8
ATProto post polling: stop using cursor
...
this was unintentionally walking backward and backfilling
for #954
2024-05-05 07:31:09 -07:00
Ryan Barrett
c0e02210c6
ATProto: drop manual GC in polling
...
for #954
2024-05-05 07:31:05 -07:00
Ryan Barrett
cb79bf5b58
bump up hub to 2G memory, explicitly GC during polls
2024-05-04 13:28:12 -07:00
Ryan Barrett
832b7a0276
ATProto poll notifs: limit 100 for protocol bot users
...
try to make sure we don't miss any follows until we switch to firehose in #978
for https://github.com/snarfed/bridgy-fed/issues/997
2024-05-04 08:42:44 -07:00
Ryan Barrett
a576e54796
ATProto polling: include limit even with cursor
2024-05-03 15:40:57 -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
f3bbf2b4c9
ATProto: don't poll posts for opted out users
2024-05-03 13:59:29 -07:00
Ryan Barrett
2f1ec8779f
ATProto: start using cursors in feed and notif polls
...
for #954
2024-05-03 12:54:59 -07:00
Ryan Barrett
7b3fa6e82b
ATProto: switch polling posts from getTimeline to getAuthorFeed
...
for #992
2024-05-02 20:11:21 -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
ee9bb53745
ATProto: drop trailing slash from PDS URL
...
the ATProto DID spec says it shouldn't be there: https://atproto.com/specs/did#did-documents
> The serviceEndpoint field must contain an HTTPS URL of server. It should contain only the URI scheme (http or https), hostname, and optional port number, not any "userinfo", path prefix, or other components.
thanks for the nudge @mackuba!
2024-05-01 17:45:48 -07:00
Ryan Barrett
cbe4b59206
convert Protocol.is_enabled_to to an instance method
...
next commit will move it to User
2024-04-27 20:27:33 -07:00
Ryan Barrett
aa5701e158
ATProto.create_report: truncate reason string if it's too long
...
for snarfed/granary#717
2024-04-26 16:12:15 -07:00
Ryan Barrett
853b4be142
ATroto.send: for flag activities, send createReport to mod service
...
for snarfed/granary#596 . background:
* https://docs.bsky.app/docs/advanced-guides/moderation#reporting
* https://github.com/bluesky-social/atproto/discussions/2350#discussioncomment-8847613
* https://github.com/snarfed/granary/issues/596
2024-04-26 13:59:04 -07:00
Ryan Barrett
bfed0452b9
ATProto polls: skip notifs/posts we've already handled
2024-04-24 15:06:49 -07:00
Ryan Barrett
0f89b0750a
ATProto: remove some obsolete TODOs
2024-04-23 17:56:27 -07:00
Ryan Barrett
4efb0d3e35
ATProto: tweak polling: every 5 min, 10 items each call
2024-04-23 16:58:30 -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
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
2886ae180d
remove common.ENABLED_PROTOCOLS, use Protocol.DEFAULT_ENABLED_PROTOCOLS instead
...
also use is_enabled_to in user page template
2024-04-18 16:39:15 -07:00
Ryan Barrett
8077a7f4ca
remove activitypub from ATProto.enabled_protocols, for now
2024-04-17 19:17:04 -07:00
Ryan Barrett
39a641e000
remove USER_ALLOWLIST in favor of User.enabled_protocols
2024-04-17 17:02:17 -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
393605bde9
change ATProto.ABBREV to bsky
...
🤞 , for #961
2024-04-17 06:54:16 -07:00
Ryan Barrett
12a3bf0862
noop: add messages to asserts in ids, atproto
2024-04-15 16:44:33 -07:00
Ryan Barrett
a70702776c
atproto: switch to Bluesky butterfly logo
...
also minor user page language tweak
2024-04-15 14:53:54 -07:00
Ryan Barrett
374af3aa5c
atproto polls: use common.USER_ALLOWLIST
2024-04-15 14:08:36 -07:00
Ryan Barrett
e913ad1f53
ATProto.convert: refetch subject for cid if we don't have it
2024-04-15 07:31:05 -07:00
Ryan Barrett
f840c8b784
temporarily disable is_enabled checks in ATProto/ActivityPub.convert
...
for manual testing
2024-04-14 14:50:02 -07:00
Ryan Barrett
5ec2159546
user page: link to bridged Bluesky profile
...
for #825
2024-04-12 08:46:59 -07:00
Ryan Barrett
133d640f1d
improve rendering of ATProto interactions on user pages
...
for #825
2024-04-11 15:02:15 -07:00
Ryan Barrett
0d549dc039
atproto: fix log message
2024-04-11 14:21:30 -07:00
Ryan Barrett
561c763fd4
atproto handle resolution: test, comments, minor refactoring
...
for snarfed/granary@d4bff45637
2024-04-10 16:34:50 -07:00
Ryan Barrett
bf296802d8
pass from_user through to convert() in a few more places
2024-04-10 15:16:37 -07:00
Ryan Barrett
7009267bb0
use new handle_or_id kwarg in common.is_enabled calls
2024-04-10 11:49:53 -07:00
Ryan Barrett
056644d19e
add handle_or_id kwarg to common.is_enabled
...
for allowlist of test users while testing a given pair of protocols
2024-04-10 11:40:17 -07:00
Ryan Barrett
4ed45e5af5
atproto: pass new ndb_client kwarg to DatastoreStorage constructor
...
for snarfed/lexrpc#8
2024-03-31 18:50:01 -07:00
Ryan Barrett
5a1dda151c
ATProto.create_for: better support for local testing
2024-03-24 08:59:54 -04:00
Ryan Barrett
048cd17ba5
bug fix for pds_for change in e86763f: don't use Object.as1 since that infinite loops
2024-03-14 21:16:09 -07:00
Ryan Barrett
878bbde328
atproto: handle bsky.app URLs in load, not fetch
2024-03-14 15:40:25 -07:00
Ryan Barrett
9b2bb9ef37
make ATProto.load([DID]) return the profile record by default
...
add did_doc kwarg to make it return the DID doc instead
2024-03-13 16:08:08 -07:00
Ryan Barrett
69e4b039e9
atproto: update authed_as, actor authz checks in poll_*
2024-03-13 15:41:03 -07:00