Wykres commitów

205 Commity (55d5206188603b3a4e9904e8fffa4ca50a109462)

Autor SHA1 Wiadomość Data
Ryan Barrett bb2d3e03de
noop: convert a few %s'es to f-strings
thanks flynt! https://github.com/ikamensh/flynt
2023-01-24 12:17:24 -08:00
Ryan Barrett 46736df21b
common.postprocess_as2 bug fix, handle multiply valued image field 2023-01-23 21:13:05 -08:00
Ryan Barrett 0d0a4ed642
update profile bug fix: always populate object.updated field
for #376
2023-01-23 20:53:34 -08:00
Ryan Barrett e6889b4cf6
activities UI bug fix for rendering profile updates 2023-01-23 20:46:12 -08:00
Ryan Barrett 378bb5dbf4
activities UI: handle empty Activity, source_mf2 without `items`
for #376
2023-01-23 19:20:31 -08:00
Ryan Barrett 1627ff667a
translate webmention from home page into profile (actor) Update
for #376, #331
2023-01-23 16:09:25 -08:00
Ryan Barrett 21c79a304c
when converting h-card to actor, use link text or title for profile links
for #331
2023-01-22 07:47:27 -08:00
Ryan Barrett af769de99e
implement rest of followers/following collections
for #264
2023-01-20 07:02:55 -08:00
Ryan Barrett 74ebbc428b
add new common.fetch_followers() fn, use in UI, AP collections, and XRPCs
for #264
2023-01-19 15:29:52 -08:00
Ryan Barrett ea02b82f39
test_pages: add tests for followers/following UI pages 2023-01-19 15:25:56 -08:00
Ryan Barrett fc4e8b11d2
return actors in AP Followers/Following collections
for #264. next: paging
2023-01-19 07:00:35 -08:00
Ryan Barrett 36349a5db9
add Follower.to_as2() 2023-01-19 06:49:39 -08:00
Ryan Barrett c3edf3a68e
make Follower.to_as1() handle both inbound and outbound last_follow
...and use it in followers and following UI pages
2023-01-18 22:31:13 -08:00
Ryan Barrett f8fbf1391c
refactoring: unify followers and following UI page handlers 2023-01-18 21:25:54 -08:00
Ryan Barrett 37e389447a
always store Follower.last_follow as AP/AS2 Follow activity
specifically, this switches storing outbound follows from inbound webmentions from AS1 to AS2.
2023-01-18 21:09:43 -08:00
Ryan Barrett 2c9850c576
HTTP Signatures: add special (request-target) header
for #40, special synthetic HTTP header for HTTP Signatures, required by Peertube.
https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures-12#section-2.3
2023-01-17 19:50:40 -08:00
Ryan Barrett 5182bb92f3
Mastodon interop: fill in the updated field for Updates if it's missing
Mastodon requires it:
https://docs.joinmastodon.org/spec/activitypub/#supported-activities-for-statuses
https://socialhub.activitypub.rocks/t/what-could-be-the-reason-that-my-update-activity-does-not-work/2893/4
https://github.com/mastodon/documentation/pull/1150
2023-01-17 11:16:14 -08:00
Ryan Barrett e6d4441292
handle redirects of signed requests manually, generate a new HTTP sig each time
fixes #326
2023-01-16 13:10:33 -08:00
Ryan Barrett 2b2dfafc18
bluesky: app.bsky.graph.getFollowers, handle no user 2023-01-15 10:07:04 -08:00
Ryan Barrett c1148ee3de
bluesky: misc minor XPRC error handling 2023-01-13 20:12:44 -08:00
Ryan Barrett a66fe4bdc2
bluesky: implement app.bsky.feed.getTimeline
based on stored Activity entities. missing auth, otherwise pretty complete.
2023-01-13 15:35:05 -08:00
Ryan Barrett 8b5f62be4d
bluesky: implement app.bsky.graph.getFollows
almost identical to getFollowers
2023-01-13 14:11:49 -08:00
Ryan Barrett 898b8545ac
bluesky: implement app.bsky.graph.getFollowers 2023-01-13 11:40:52 -08:00
Ryan Barrett ef1c92222b
bridgy-at: integrate XRPC server, testutil, etc 2023-01-12 19:43:12 -08:00
Ryan Barrett 2cca37af1d
Merge snarfed/bridgy-at repo into bridgy-fed
Dropped most files, only kept XRPC implementations and tests.
2023-01-12 19:30:07 -08:00
Ryan Barrett 2bf2a77584
punt on getRepostedBy for now 2023-01-12 18:05:07 -08:00
Ryan Barrett 39d5485a52
implement empty stub for app.bsky.feed.getVotes 2023-01-12 16:47:30 -08:00
Ryan Barrett 64242f3deb
implement app.bsky.feed.getPostThread 2023-01-12 16:39:21 -08:00
Ryan Barrett 6520331627
incoming Follows: synthesize url into follow object stored in Activity
rendered mf2 HTML proxy pages (in render.py) fall back to redirecting to the follow's AS2 id field, but Mastodon's ids are URLs that don't load in browsers, eg https://jawns.club/ac33c547-ca6b-4351-80d5-d11a6879a7b0. so, set a synthetic URL based on the follower's profile. fixes #336
2023-01-12 12:28:34 -08:00
Ryan Barrett 4e539488a7
inbound AP: handle Undo Follow with composite inner object 2023-01-09 22:58:35 -08:00
Ryan Barrett d2eda25375
unfollow UI
#351

pretty complete, except for activity text snippet rendering
2023-01-09 22:58:35 -08:00
Ryan Barrett a14c58ac47
follow UI: use synthesized follow URL in Activity key id 2023-01-08 22:39:37 -08:00
Ryan Barrett 8cdc5ecc4c
inbound AP: handle Follow with composite object 2023-01-08 17:41:15 -08:00
Ryan Barrett a52df2c269
follow UI: handle URL inputs, eg https://indieweb.social/@snarfed
#351
2023-01-08 15:43:32 -08:00
Ryan Barrett 9bb82e6db3
follow UI: store last_follow, misc bug fixes 2023-01-08 12:03:56 -08:00
Ryan Barrett 91c4200bb3
follow UI: synthesize Follow activity id, store an Activity, link address, form bug fix 2023-01-08 07:11:22 -08:00
Ryan Barrett c50f0e0106
add follow UI to user/[domain]/following
for #351
2023-01-07 09:34:55 -08:00
Ryan Barrett 6e000d348d
noop: add TestCase.as2_resp(), refactor ActivityPubTest to use it 2023-01-07 09:18:11 -08:00
Ryan Barrett aa0dcbb222
noop: drop content type constants in common, use granary's instead 2023-01-06 21:01:33 -08:00
Ryan Barrett 7ac1006021
background task bug fix: override task runner host
we were using request.host_url blindly, which was fed.brid.gy for user-facing requests, but bridgy-federated.uc.r.appspot.com for tasks. #335
2023-01-05 15:05:35 -08:00
Ryan Barrett 512737cc99
add task queue for delivering AP Creates and Updates to followers
fixes #335
2023-01-04 20:48:39 -08:00
Ryan Barrett fe5c3947a8
drop OStatus! it's been unused for years
fixes #282
2023-01-04 19:22:11 -08:00
Ryan Barrett 45f4bd71a2
switch common.utcnow to util.now 2023-01-03 15:41:43 -08:00
Ryan Barrett bb6dd119db
move test data to granary, drop unneeded method stubs 2022-12-30 22:52:56 -08:00
Ryan Barrett f55ef86524
finish implementing getAuthorFeed 2022-12-30 10:10:49 -08:00
Ryan Barrett e5b3307828
app.bsky.feed.getAuthorFeed, in progress 2022-12-28 17:30:22 -08:00
Ryan Barrett 6968d0cb51
stub actor.search and searchTypeahead 2022-12-28 13:11:17 -08:00
Ryan Barrett ab597d11c6
implement getSuggestions stub, switch tests to use Flask test client 2022-12-28 09:46:32 -08:00
Ryan Barrett 55dca2043e
implement actor.getProfile 2022-12-28 09:27:57 -08:00
Ryan Barrett 5f082349d5
/r/ handler: include Accept header in flask cache key
requires pending bug fix https://github.com/pallets-eco/flask-caching/pull/431
2022-12-26 09:52:08 -08:00