Ryan Barrett
fc14298f0d
authz: expand LD Sigs check to any signature field, regardless of creator
...
for #566
2024-05-28 15:15:23 -07:00
Ryan Barrett
e26a845592
web.webmention_task: use domain as authed_as, not homepage URL
...
for #566
2024-05-28 15:01:45 -07:00
Ryan Barrett
1de49de720
update-profile: pass user id to receive task authed_as, not handle
...
for #566
2024-05-28 14:54:31 -07:00
Ryan Barrett
22760f5017
ActivityPub.verify_signature: follow controller/owner if different from keyId
...
for https://github.com/snarfed/bridgy-fed/issues/566#issuecomment-2130728082
https://swicg.github.io/activitypub-http-signature/#how-to-obtain-a-signature-s-public-key
2024-05-28 13:48:03 -07:00
Ryan Barrett
8ad9aeda8d
router.yaml: noop URL update in common
2024-05-28 13:22:46 -07:00
Ryan Barrett
3ec5e57136
activitypub.signed_request: limit redirects
...
for #1085 , #1087
2024-05-27 21:02:59 -07:00
Ryan Barrett
0a3976e33a
Object._post_put_hook: use objects_cache_lock for objects_cache
...
fixes https://console.cloud.google.com/errors/detail/CMv025380KiFOg?project=bridgy-federated
2024-05-27 20:38:51 -07:00
Ryan Barrett
2dc693d654
test_pages: test_update_profile_receive_task
2024-05-27 20:38:51 -07:00
Ryan Barrett
03672679b9
activitypub, protocol: misc noop logging and code style tweaks
2024-05-27 20:38:49 -07:00
Ryan Barrett
83211cddc2
testutil: noop refactoring, remove path arg in assert_task
2024-05-24 22:16:20 -07:00
Ryan Barrett
6f84a98a5d
Protocol.receive: more authz log message tweaks
...
for #566
2024-05-24 20:00:23 -07:00
Ryan Barrett
ab4f26cf3f
router: drop down from 2 cpus to 1
2024-05-24 19:36:09 -07:00
Ryan Barrett
4ca02824c9
Protocol.receive: tweak authz logging messages
...
for #566
2024-05-24 19:30:31 -07:00
Ryan Barrett
973e29fcdc
hub: bump up ROLLBACK_WINDOW drastically to effectively all of history
...
for #1059
2024-05-24 18:40:46 -07:00
Ryan Barrett
f2be280016
atproto_firehose: load ATProto users by updated, not by created
...
fixes #1082
2024-05-24 18:40:22 -07:00
Ryan Barrett
5a77dde7e8
noop: Object.actor_link: remove dead code
2024-05-24 09:53:16 -07:00
Ryan Barrett
6ffc4a3c3b
infra: add new router flex service, switch tasks to run on it
...
receive, send, webmention, and poll-feed
2024-05-23 20:40:54 -07:00
Ryan Barrett
ae8b6ca7b6
fix test_activitypub_follow_bsky_bot_bad_username_error for d789fd10b6
2024-05-23 15:39:45 -07:00
Ryan Barrett
d789fd10b6
ActivityPub.inbox: run receive in task instead of inline
...
for #1040
2024-05-23 15:02:49 -07:00
Ryan Barrett
74b557c2d0
docs: update for blocking to disable the bridge
...
for #783
2024-05-23 13:28:54 -07:00
Ryan Barrett
aa5ec4cccd
Protocol.maybe_delete_copy: minor tweaks
...
for #783
2024-05-23 11:43:02 -07:00
Ryan Barrett
9de5eb400c
Protocol.targets: don't add ATProto for reposts of/replies to non-bridged posts
2024-05-22 23:28:53 -07:00
Ryan Barrett
15af8b2585
limited domains bug fix: don't count protocol bot user follows
2024-05-22 22:33:57 -07:00
Ryan Barrett
4cf0959080
atproto_firehose: oops, still need to skip commits from our bridged users
...
add a test, should have had one originally!
2024-05-22 22:08:25 -07:00
Ryan Barrett
769dadb882
ATProto: arroba: send_new_commits => send_events
...
snarfed/arroba@aad0d9da63
2024-05-22 16:47:09 -07:00
Ryan Barrett
f39392e225
Protocol: when disabling a protocol, also delete that protocol's copy user
...
for #783
2024-05-22 16:33:13 -07:00
Ryan Barrett
eb53ac01ce
ATProto: support deleting bridged users
...
for #783
2024-05-22 15:13:36 -07:00
Ryan Barrett
45ba0fb69f
Protocol.send_task: handle missing url or protocol param
2024-05-22 14:28:17 -07:00
Ryan Barrett
1778a1145e
Protocol.bot_follow: send in separate task instead of inline
...
fixes #1041
2024-05-22 14:28:17 -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
dependabot[bot]
d2ba81a211
---
...
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-22 05:14:43 -07:00
dependabot[bot]
0bfa8838a3
---
...
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 05:57:32 -07:00
dependabot[bot]
9a6dc0b1e0
---
...
updated-dependencies:
- dependency-name: grpcio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 05:57:08 -07:00
dependabot[bot]
f7b26ed9e5
---
...
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-20 22:29:35 -07:00
Ryan Barrett
b4124bd23f
AP: wrap content in <p> tag to preserve whitespace
...
for #990
this assumes an implementation detail of fediverse servers: that they apply a white-space: pre-wrap style to <p>s inside content. awkward overreach, but useful since white-space: pre-wrap preserves more whitespace (eg leading spaces on a line, multiple spaces, etc) than just converting newlines to <br>s.
2024-05-20 12:18:41 -07:00
Ryan Barrett
9e2447dd57
ATProto.convert: test guessing mention facet indices when displayName has full @-@ with server
...
for #957
2024-05-20 11:25:35 -07:00
Ryan Barrett
edf3b5894e
activitypub.postprocess_as2: linkify indexed tags in content
...
makes Mastodon etc link them correctly to the local instance's UI in its rendering
2024-05-19 20:38:34 -07:00
Ryan Barrett
9243e18a4f
activitypub.postprocess_as2: hashtags: use activity id's domain for href
...
for https://github.com/snarfed/bridgy-fed/issues/1013
2024-05-19 17:56:26 -07:00
Ryan Barrett
ec350e7fa6
activitypub.postprocess_as2: fix de-duping image attachments
...
for https://github.com/snarfed/bridgy-fed/issues/1000#issuecomment-2119106644
2024-05-19 15:38:13 -07:00
Ryan Barrett
7cf8a77a73
ActivityPub.postprocess_as2: always populate images into attachments as objects
...
hopefully for https://github.com/snarfed/bridgy-fed/issues/1000#issuecomment-2119106644 , ATProto images without alt text not showing up in AP
2024-05-19 14:44:54 -07:00
Ryan Barrett
976653d5bb
atproto_firehose: fix tests for f6575cca4f
2024-05-19 13:57:42 -07:00
Ryan Barrett
f6575cca4f
atproto_firehose.subscribe: skip bad commits
...
fixes #1061
2024-05-19 13:47:13 -07:00
Ryan Barrett
8e670dadc2
atproto_firehose: handle errors decoding bad DAG-CBOR blocks
...
for https://github.com/hashberg-io/dag-cbor/issues/14
2024-05-18 23:17:07 -07:00
Ryan Barrett
91ffffc8e0
bug fix for quality filter (REQUIRES_*) status checks
...
they go before explicit opt in overrid
2024-05-16 23:33:30 -07:00
Ryan Barrett
40574527a2
circle: uninstall dag-json to make sure we use it at head
2024-05-16 13:23:37 -07:00
Ryan Barrett
1382944472
bump circle cache again for dag-json 😠
...
logs say it cloned at the right commit (snarfed/dag-json@4bfd629763 ), but then it seemed to still use the earlier cached version. why?!?
2024-05-16 13:22:38 -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
3df6f10b4e
robots.txt: add /log
2024-05-16 10:28:32 -07:00
Ryan Barrett
8ee4c3b2ea
atproto_firehose.handle: switch dag_json from compact=True to dialect='atproto'
...
for AT Protocol's DAG-JSON variant with $link and $bytes: https://atproto.com/specs/data-model ; for https://github.com/snarfed/bridgy-fed/issues/1000
2024-05-15 21:00:42 -07:00