Wykres commitów

187 Commity (78cf5f9a334892027e75c17572a30c340227f888)

Autor SHA1 Wiadomość Data
Ryan Barrett 162d882112
ATProto: pass new type kwarg to granary Bluesky.truncate() call
for snarfed/granary@7d7e377c28
2024-06-13 19:46:43 -07:00
Ryan Barrett 387d3169a6
ATProto: rename original* custom fields to bridgyOriginal*
for #1092
2024-06-12 15:22:45 -07:00
Ryan Barrett 417a88a2a6
ATProto: support new off-lexicon originalDescription and originalUrl fields
for snarfed/bridgy-fed#1092
2024-06-12 15:22:45 -07:00
Ryan Barrett 04112c88bf
ATProto.add_source_links: switch to granary's Bluesky.truncate()
for #986
2024-06-10 16:15:59 -07:00
Ryan Barrett 551637f6a1
ATProto.send: ignore update/delete of object that we didn't bridge
fixes https://console.cloud.google.com/errors/detail/COX1ss-HvOq5Xg;time=P30D?project=bridgy-federated
2024-06-08 16:52:34 -07:00
Ryan Barrett 5b7f8de8d6
ATProto.send: handle delete when we have Object but not contents
fixes https://console.cloud.google.com/errors/detail/COjSuYPS0qLvmAE;time=P30D?project=bridgy-federated
2024-06-08 16:40:19 -07:00
Ryan Barrett 4a2abbac5b
ATProto.send, create_report: short circuit if repo is tombstoned
fixes https://console.cloud.google.com/errors/detail/CLTU-qezn5vJnQE;time=P30D?project=bridgy-federated
2024-06-08 15:16:39 -07:00
Ryan Barrett 9ff28ea690
ATProto.send: short circuit out for deletes of objects we don't have
fixes https://console.cloud.google.com/errors/detail/COjSuYPS0qLvmAE;time=P30D?project=bridgy-federated , https://console.cloud.google.com/errors/detail/COX1ss-HvOq5Xg;time=P30D?project=bridgy-federated
2024-06-08 14:28:16 -07:00
Ryan Barrett 026d99edc0
pass ignore_links=True to html_to_text everywhere
for #976
2024-06-06 18:14:35 -07:00
Ryan Barrett 183c829229
ATProto.add_source_links: truncate before adding source links
for #976
2024-06-06 14:16:05 -07:00
Ryan Barrett 27fc843825
Protocol.add_source_links bug fixes, handle actors inside create/update activities
for #976
2024-06-06 11:40:25 -07:00
Ryan Barrett be30afd55a
ATProto: use plain text URLs domains in "bridged by Bridgy Fed" profile text
for #976
2024-06-06 08:58:09 -07:00
Ryan Barrett 0046f6436e
ATProto: when creating repo, store chat declaration to disable DMs
for https://github.com/snarfed/bridgy-fed/issues/1101
2024-06-04 20:22:31 -07:00
Ryan Barrett ba00850840
turn on memorystore ndb global cache in hub and atproto_firehose 2024-06-04 19:27:52 -07:00
Ryan Barrett 3cb9a9366d
Web, ATProto: skip add activities, eg Bluesky list items
hopefully fixes https://console.cloud.google.com/errors/detail/CP7I5eaZj-_TxgE;time=P7D;refresh=true?project=bridgy-federated
2024-06-04 14:10:21 -07:00
Ryan Barrett 423b5511dd
ATProto: Web.send: skip polls (objectType question)
for https://console.cloud.google.com/errors/detail/CPvA_dLO4r_hIA;time=P30D;refresh=true?project=bridgy-federated
2024-06-04 12:31:38 -07:00
Ryan Barrett a2376f8f14
prune more logging messages 2024-06-01 07:17:44 -07:00
Ryan Barrett 8f5d8221a9
add ids.profile_id, use everywhere
for #566
2024-05-29 16:18:15 -07:00
Ryan Barrett f2a64c8b5c
Object.get_or_create: rename actor => authed_as, add to all calls
for #566
2024-05-28 16:07:32 -07:00
Ryan Barrett eb53ac01ce
ATProto: support deleting bridged users
for #783
2024-05-22 15:13:36 -07:00
Ryan Barrett 7f72a62081
ATProto: delete polling code and config
for #978. end of a (brief) era!
2024-05-22 14:28:17 -07:00
Ryan Barrett 06e2e61b1e
ATProto: switch to granary's logic to populate strongRefs, via DatastoreClient
for #1007
2024-05-16 13:11:29 -07:00
Ryan Barrett d52b2ce3e9
ATProto: add new DatastoreClient class that uses both datastore and appview
for #1007
2024-05-16 12:48:28 -07:00
Ryan Barrett f6798f2725
abstract "bridged from Bridgy Fed" profile label across protocols
for #976
2024-05-14 16:03:42 -07:00
Ryan Barrett e089de97ee
ATProto: noop refactor, move actor self label to convert()
for #976
2024-05-14 16:03:42 -07:00
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