Wykres commitów

1361 Commity (36d020eb77e0d860978e5fa53b090ced7b101483)

Autor SHA1 Wiadomość Data
Ryan Barrett fe27742b80
AP users: promote ActivityPub.label_id computed prop to User.readable_id
and drop ActivityPub.get_by_id() override, move logic to user() page handler. fixes 'Only ancestor queries are allowed inside transactions.'

for #512
2023-06-03 21:48:15 -07:00
Ryan Barrett cf68c1ebc7
AP users: fill in more fields in base actor objects
working on Mastodon account discovery interop. for #512
2023-06-03 08:36:55 -07:00
Ryan Barrett daba73ce38
update a few user page links in the web UI, /user/ => /web/
for #512
2023-06-03 08:03:38 -07:00
Ryan Barrett c41b55a199
Web.fetch: switch back to raising instead of returning empty Object
raise new custom NoMicroformats exception
2023-06-03 07:28:01 -07:00
Ryan Barrett 20864f9246
inbound webmention: handle source pages with no mf2
fixes https://console.cloud.google.com/errors/detail/CKOFx6_Wrfzf6wE;time=P30D;refresh=true?project=bridgy-federated
2023-06-03 07:01:20 -07:00
Ryan Barrett 92b71e5f9d
user page UI bug fixes, handle generic User subclasses, id instead of domain 2023-06-02 22:13:42 -07:00
Ryan Barrett 9d1dc652f9
Protocol.load: bug fix, handle Object.as1 going from non-None to None
fixes https://console.cloud.google.com/errors/detail/CI3L3MzXjPza9gE;time=P30D?project=bridgy-federated
2023-06-02 21:53:44 -07:00
Ryan Barrett d9cd5d14b9
AP users: fetch user on demand on /[actor] if we don't already have it
also change Web.fetch() to allow missing mf2 instead of raising exception. we now create Web users with None for mf2 property if the site has no mf2.

for #512
2023-06-02 12:55:07 -07:00
Ryan Barrett 388769a1dd
incoming webmention, handle bad source URLs better
fixes https://console.cloud.google.com/errors/detail/CO-fpZfMq_6ktgE;time=P30D?project=bridgy-federated
2023-06-02 11:10:04 -07:00
Ryan Barrett e05ddb0a45
AP users: serve ActivityPub user page with address (handle) in URL
eg /activitypub/@me@instance.com

for #512
2023-06-01 22:00:47 -07:00
Ryan Barrett ca64793fff
AP users: add User.name() and label_id(), ActivityPub.address computed property
for #512
2023-06-01 21:37:58 -07:00
Ryan Barrett 17ed24b6f5
AP users: switch ActivityPub.ap_address() to use as2.address()
for #512
2023-06-01 20:58:42 -07:00
Ryan Barrett 958f81ddd1
AP users: rename [is_]homepage => [is_]web_url, move into Protocol subclasses
for #512
2023-05-31 18:47:40 -07:00
Ryan Barrett 28eabd07a3
create AP users on inbox delivery for an indirect or nonexistent Web user
for #512
2023-05-31 13:17:17 -07:00
Ryan Barrett 086c6d032c
minor noop User tweak, domain => id 2023-05-31 12:38:00 -07:00
Ryan Barrett 56f18f5d9a
AP users: make User.ap_actor/ap_address abstract, implement in subclasses
for #512
2023-05-31 10:47:09 -07:00
Ryan Barrett 35060c172a
switch actor_id() and address90 back to User methods, to be implemented by subclasses
partially reverts 9e906f18e4
2023-05-31 10:10:14 -07:00
Ryan Barrett 9e906f18e4
move address, actor_id from User to activitypub.py, /web-site to web.py
for #512
2023-05-30 17:24:49 -07:00
Ryan Barrett cec093ea60
AP users: parameterize /remote-follow by protocol
for #512
2023-05-30 16:53:08 -07:00
Ryan Barrett 852bd5deaf
AP users: update robots.txt for new URL prefixes
for #512
2023-05-30 16:41:55 -07:00
Ryan Barrett 29f1a1d4ac
AP users: start parameterizing URLs, including UI pages and AP endpoints
user pages now have /[protocol]/ prefix, AP endpoints have /ap/ prefix. for #512
2023-05-30 16:38:58 -07:00
Ryan Barrett 8d4228b811
AP users: change web UI user page paths from /user/... to /[protocol]/...
for #512
2023-05-30 14:08:47 -07:00
Ryan Barrett 47b04f5574
rename Web.LABEL from 'webmention' to 'web' 2023-05-30 12:15:36 -07:00
Ryan Barrett 93f621aaf5
AP users: start to replace external with indirect, starting with webfinger
#512
2023-05-29 20:16:15 -07:00
Ryan Barrett 624355d85a
AP users: add new User.direct property
direct users signed up or otherwise interacted with BF explicitly, indirect users didn't
2023-05-29 19:37:41 -07:00
Ryan Barrett 6e834713f1
when replying to Follow with Accept, include original Follow object verbatim
notably, including id. fixes #522 (again)
2023-05-29 19:04:26 -07:00
dependabot[bot] 368c5b26aa build(deps): bump fixtures from 4.0.1 to 4.1.0
Bumps [fixtures](https://github.com/testing-cabal/fixtures) from 4.0.1 to 4.1.0.
- [Changelog](https://github.com/testing-cabal/fixtures/blob/master/NEWS)
- [Commits](https://github.com/testing-cabal/fixtures/compare/4.0.1...4.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 06:00:18 -07:00
dependabot[bot] e85138dd65 build(deps): bump deprecated from 1.2.13 to 1.2.14
Bumps [deprecated](https://github.com/tantale/deprecated) from 1.2.13 to 1.2.14.
- [Release notes](https://github.com/tantale/deprecated/releases)
- [Changelog](https://github.com/tantale/deprecated/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tantale/deprecated/compare/v1.2.13...v1.2.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 05:59:56 -07:00
Ryan Barrett 72024f90b1
bug fix for application/ld+json content type
fixes #522
2023-05-28 08:06:36 -07:00
Ryan Barrett b7bebb4075
move base64_to_long, long_to_base64 to common 2023-05-27 14:58:22 -07:00
Ryan Barrett 3cba0e272b
translating docs, minor language tweaks 2023-05-27 14:27:31 -07:00
Ryan Barrett cc0c3804b7
pin grpcio to 1.54
1.55.0 hangs on Mac in gunicorn/flask run with "Waiting for thread pool to idle before forking." https://github.com/grpc/grpc/issues/31885
2023-05-27 10:21:32 -07:00
Ryan Barrett c8b2103e13
rename Webmention class => Web, webmention.py => web.py 2023-05-26 17:40:29 -07:00
Ryan Barrett dc41ad6155
docs: protocol translation tables tweak, IndieWeb => Web 2023-05-26 17:39:10 -07:00
Ryan Barrett 6ab6d876b0
another test bug fix for eaa4e5333a 2023-05-26 16:43:03 -07:00
Ryan Barrett 51fd119c02
fix bug in models.reset_protocol_properties
added in eaa4e5333a
2023-05-26 16:36:45 -07:00
Ryan Barrett eaa4e5333a
start to make User subclasses for each protocol
#512
2023-05-26 16:07:36 -07:00
Ryan Barrett 60a3327684
minor doc tweaks to translation tables 2023-05-26 13:00:00 -07:00
Ryan Barrett 6268f5d9a0
docs: show completed parts of translation tables in green 2023-05-26 12:42:55 -07:00
Ryan Barrett 2f2e26b233
pin typing-extensions==4.5.0
v4.6.0 breaks bases (which multiformats etc use)

https://github.com/hashberg-io/bases/issues/3
2023-05-26 06:53:40 -07:00
Ryan Barrett c277686e13 document proposed translations between protocols in docs 2023-05-25 22:27:33 -07:00
Ryan Barrett 15e3daff5e
switch outbound webmention source URLs from /render?id=... to /convert/...
#512
2023-05-24 16:32:00 -07:00
Ryan Barrett a3df7d6d30
make /render redirect to /convert/...
#512
2023-05-24 16:32:00 -07:00
Ryan Barrett 6d976854dc
add /render logic to /convert/... 2023-05-24 16:00:41 -07:00
Ryan Barrett df35ce16cc
AP users: add convert.py and /convert/... endpoint
#512
2023-05-24 15:18:31 -07:00
Ryan Barrett 30659a78f7
test_redirect: minor noop test data refactoring 2023-05-24 15:18:16 -07:00
Ryan Barrett af95521759
user page bug fix, add missing import
fixes https://console.cloud.google.com/errors/detail/COHl8dmZ9-i4Lw;time=P30D?project=bridgy-federated
2023-05-24 06:57:34 -07:00
dependabot[bot] c8b2287a60 build(deps): bump grpcio from 1.54.0 to 1.54.2
Bumps [grpcio](https://github.com/grpc/grpc) from 1.54.0 to 1.54.2.
- [Release notes](https://github.com/grpc/grpc/releases)
- [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md)
- [Commits](https://github.com/grpc/grpc/compare/v1.54.0...v1.54.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-24 06:00:18 -07:00
Ryan Barrett cf86f4d808
AP users: extract out Protocol.serve() method
#512
2023-05-23 21:30:57 -07:00
Ryan Barrett 892047a10c
add Protocol metaclass and protocol.protocols global for storing subclasses 2023-05-23 15:15:28 -07:00