Wykres commitów

2764 Commity (ea6e195835ae970368fc1f046e3919d03109f80c)

Autor SHA1 Wiadomość Data
Ryan Barrett ea6e195835
ATProto.send_chat: add new lxm claim to JWT
lxm scopes the JWT to a single XRPC method, so we need a token per call now. https://github.com/bluesky-social/atproto/discussions/2687
2024-08-16 14:32:47 -07:00
Ryan Barrett 98098aeabb
when an unbridged user replies to a bridged user, DM them a prompt
one time only, per user per protocol!

for #1205
2024-08-16 14:03:44 -07:00
Ryan Barrett ccb7158350
Protocol.check_supported: allow DMs both to and from bot accounts
for #1205, #1148, #966, #1024
2024-08-16 14:01:28 -07:00
Ryan Barrett a185b34052
Protocol.receive: switch more as1.is_dm to as1.recipient_if_dm 2024-08-16 12:46:02 -07:00
Ryan Barrett a36340d826
docs: add &quiet=true for feed URLs 2024-08-16 11:57:47 -07:00
Ryan Barrett 0ce8eaff1a
Protocol.bot_dm => maybe_bot_dm, populate and check User.sent_dms
for #1205, #1148, #966, #1024
2024-08-15 17:24:25 -07:00
Ryan Barrett b5a1f32800
/convert/: when checking that author is bridged, handle cross-protocol reposts
for #1248, https://console.cloud.google.com/errors/detail/CJmhz9SqmcO6vQE;time=P7D;locations=global?project=bridgy-federated
2024-08-15 14:35:49 -07:00
Ryan Barrett 2adc661aa4
/r/ and Protocol.for_id: handle bad bsky.app URLs better
for https://console.cloud.google.com/errors/detail/CNSB0pOhgIfdbA;locations=global;time=P30D?project=bridgy-federated
2024-08-15 14:35:49 -07:00
Ryan Barrett 9011fa2cbd
Protocol.for_id: error handling for bad URLs 2024-08-15 14:35:49 -07:00
Ryan Barrett 17371a31cb
switch User.sent_dms from Target to new DM type 2024-08-15 14:35:49 -07:00
dependabot[bot] c7b1bb1f45 build(deps): bump google-api-python-client from 2.140.0 to 2.141.0
Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client) from 2.140.0 to 2.141.0.
- [Release notes](https://github.com/googleapis/google-api-python-client/releases)
- [Commits](https://github.com/googleapis/google-api-python-client/compare/v2.140.0...v2.141.0)

---
updated-dependencies:
- dependency-name: google-api-python-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-15 05:19:56 -07:00
Ryan Barrett 799ccc2a7c
noop: ATProto.send: switch as1.is_dm to as1.recipient_if_dm 2024-08-14 17:06:58 -07:00
Ryan Barrett eedc77fcb8
make User.sent_dms per-protocol by changing its type to Target
for #1205, #1148, #966, #1024
2024-08-14 15:11:56 -07:00
Ryan Barrett eb9b28faa8
add User.sent_dms to track the DMs we've sent to a user
for #1205, #1148, #966, #1024
2024-08-14 14:10:21 -07:00
Ryan Barrett 405bd06f5b
Protocol.receive: add tests for delete and undo with wrong authed_as
for #1243
2024-08-14 13:14:22 -07:00
Ryan Barrett 303ea175cf
Protocol.receive: more undo handling, mark object as deleted
also add undo test

for #1243
2024-08-14 13:07:03 -07:00
Ryan Barrett 4c12c087ac
AP outbox: turn off querying too
for #1248
2024-08-14 08:32:02 -07:00
dependabot[bot] c044392a94 build(deps): bump webob from 1.8.7 to 1.8.8
Bumps [webob](https://github.com/Pylons/webob) from 1.8.7 to 1.8.8.
- [Changelog](https://github.com/Pylons/webob/blob/main/CHANGES.txt)
- [Commits](https://github.com/Pylons/webob/compare/1.8.7...1.8.8)

---
updated-dependencies:
- dependency-name: webob
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-14 05:53:40 -07:00
dependabot[bot] d6c72b1130 build(deps): bump soupsieve from 2.5 to 2.6
Bumps [soupsieve](https://github.com/facelessuser/soupsieve) from 2.5 to 2.6.
- [Release notes](https://github.com/facelessuser/soupsieve/releases)
- [Commits](https://github.com/facelessuser/soupsieve/compare/2.5...2.6)

---
updated-dependencies:
- dependency-name: soupsieve
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-14 05:53:20 -07:00
Ryan Barrett 775756c7b2
temporarily disable outboxes
for #1248
2024-08-13 21:22:00 -07:00
Ryan Barrett 7b0fd25793
cut down router worker threads, receive and send queue concurrent limit
for #1138
2024-08-13 21:14:55 -07:00
Ryan Barrett c086eea9eb
Protocol.targets: only use orig_obj for replies and reposts
...not eg link tags. for #1237, #1257
2024-08-13 17:48:50 -07:00
Ryan Barrett b3272e84c9
activitypub.postprocess_as2: handle multiply-valued inReplyTo
for #1257
2024-08-13 17:48:50 -07:00
Ryan Barrett 8d67e79f8f
Protocol.translate_ids: handle multiply valued fields like inReplyTo 2024-08-13 15:51:20 -07:00
Ryan Barrett bfbd7494bb
web: drop feed polling max delay from 1w down to 1d 2024-08-13 09:59:37 -07:00
Ryan Barrett f0ef0bb12b
noop: fix log message in /convert/ 2024-08-12 21:04:20 -07:00
Ryan Barrett 39aa16be62
/convert/: for reposts, check that original post and author are bridged
for #1248, https://github.com/snarfed/bridgy-fed/security/advisories/GHSA-6q9w-mpqc-j4j4
2024-08-12 16:03:39 -07:00
Ryan Barrett 69a158aee5
suppress bs4 DeprecationWarning, 'strip_cdata' option of HTMLParser
local/lib/python3.11/site-packages/bs4/builder/_lxml.py:124: DeprecationWarning: The 'strip_cdata' option of HTMLParser() has never done anything and will eventually be removed.

introduced in lxml 5.3.0, d31d21396c
2024-08-12 13:51:50 -07:00
Ryan Barrett fa170253fe
/convert/: check that object (if necessary) and user are bridged
for #1248, https://github.com/snarfed/bridgy-fed/security/advisories/GHSA-6q9w-mpqc-j4j4
2024-08-12 13:51:50 -07:00
Ryan Barrett 497136f1fc
cache Protocol.for_handle 2024-08-12 13:39:11 -07:00
Ryan Barrett e21dabe98d
noop: Protocol.targets refactoring, source protocol isn't in to_protocols
for #1248
2024-08-12 13:39:10 -07:00
Ryan Barrett 67567ca589
noop: Protocol.targets refactoring for to_protocols loop 2024-08-12 13:39:10 -07:00
dependabot[bot] aa5ed8368c build(deps): bump gunicorn from 22.0.0 to 23.0.0
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 22.0.0 to 23.0.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/22.0.0...23.0.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 07:04:55 -07:00
dependabot[bot] d31d21396c build(deps): bump lxml from 5.2.2 to 5.3.0
Bumps [lxml](https://github.com/lxml/lxml) from 5.2.2 to 5.3.0.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-5.2.2...lxml-5.3.0)

---
updated-dependencies:
- dependency-name: lxml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 05:40:05 -07:00
Ryan Barrett 5d5a983564
Protocol.bot_follow: handle when user has no profile obj
fixes https://console.cloud.google.com/errors/detail/CIvu-KTludO5LA;time=P1D;locations=global?project=bridgy-federated
2024-08-11 08:51:08 -07:00
Ryan Barrett eebea504b6
Protocol.bot_dm: handle when recipient has no profile obj
fixes https://console.cloud.google.com/errors/detail/CIGR6crBlMKMBg;locations=global;time=P30D?project=bridgy-federated
2024-08-11 08:41:44 -07:00
Ryan Barrett a91c8087fb
ATProto.send: gracefully handle updates/deletes that don't match original AT URI
for eg #1252
2024-08-11 07:42:10 -07:00
Ryan Barrett 058099a98e
docs link bug fix
fixes #1249
2024-08-09 21:51:59 -07:00
Ryan Barrett 21fb033ac7
Web.verify: if redirect destination is right, ignore HTTP status code
we now return 404 if the user doesn't have `has_redirects` set yet, so we need to break that loop 😀

fixes #1247
2024-08-09 12:12:27 -07:00
Ryan Barrett 1494fe3fe6
opt_out.py: kbin.social is dead 2024-08-09 12:12:27 -07:00
Ryan Barrett b0f6b1799b
Protocol.bot_dm: log full text 2024-08-09 12:12:26 -07:00
dependabot[bot] 9ec25a98fc build(deps): bump pyyaml from 6.0.1 to 6.0.2
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/main/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/6.0.1...6.0.2)

---
updated-dependencies:
- dependency-name: pyyaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-09 05:30:28 -07:00
Ryan Barrett 07b8a3de1d
User.enable_protocol: fill in real welcome DM message
for #1024, #966, etc
2024-08-08 22:21:40 -07:00
Ryan Barrett 925771562f
add Protocol.SUPPORTS_DMS
for #1024, #966, etc
2024-08-08 20:41:57 -07:00
Ryan Barrett cd0a4bce9e
AP: add outbound DM support
for #1024, #966, etc
2024-08-08 20:35:56 -07:00
Ryan Barrett 23aa24eb4f
User.enable_protocol: send welcome DM
via new Protocol.bot_dm method

for #1024, #966, etc
2024-08-08 20:17:06 -07:00
Ryan Barrett 37c781a2df
ATProto.send: handle DMs, translate and send as chat messages
for #1024, #966, etc
2024-08-08 20:17:06 -07:00
Ryan Barrett 356903c3e9
test_pages: test www special case domains
for #1244
2024-08-08 20:16:17 -07:00
Ryan Barrett 9d2019fdca
minor nodeinfo tweaks
https://nodeinfo.diaspora.software/schema.html
2024-08-08 20:16:17 -07:00
dependabot[bot] 02bea06ba9 build(deps): bump cffi from 1.16.0 to 1.17.0
Bumps [cffi](https://github.com/python-cffi/cffi) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/python-cffi/cffi/releases)
- [Commits](https://github.com/python-cffi/cffi/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: cffi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-08 05:11:56 -07:00