Ryan Barrett
1c41aa4fd0
AP: blindly accept all Accepts
...
#21
2018-10-24 21:44:21 -07:00
Ryan Barrett
42ad9d1998
include full AS2 actor object in Response activities
...
for #21
2018-10-23 13:09:49 -07:00
Ryan Barrett
98a19a994d
convert AP Follow to indieweb webmention with u-follow-of
...
#21 , https://indieweb.org/follow
2018-10-23 11:11:50 -07:00
Ryan Barrett
abc5ecd919
AP Follow: store users' followers in the datastore
...
#21
2018-10-21 17:37:33 -07:00
Ryan Barrett
a4b309afef
activitypub: refactor Accept response to Follow activity
...
...and get tests working. #21
2018-10-21 15:28:42 -07:00
Ryan Barrett
ed3a685831
accept AP follow requests: original patch from @swentel
...
...from https://github.com/snarfed/bridgy-fed/issues/21#issuecomment-430403595
2018-10-19 06:50:00 -07:00
Ryan Barrett
9fc47c8ba9
AP => wm: switch to proxying reply wm source, unwrap URLs
...
for #35
example: https://webmention.io/realize.be/webmention/hG654HOgobymY54pMaNS
2018-10-17 17:49:56 -07:00
Ryan Barrett
2ffd10306f
AP => webmention: handle full AS2 activities
...
mastodon used to send bare objects for lots of things, e.g. replies, but now sends ful AS2 Create activities with embedded objects much more often. handle those too.
thanks for the nudge @swentel!
2018-10-15 11:52:11 -07:00
Ryan Barrett
5047337738
upgrade BS4 to 4.6.3, pin lxml to app engine prod's version
2018-10-11 17:03:26 -07:00
Ryan Barrett
a1a66c2f24
fix logging for failed outbound HTTP requests
...
also disable logging full parsed mf2 in activitypub actor handler.
2017-10-24 18:27:07 -07:00
Ryan Barrett
c81a6b8ed2
activitypub: follow HTML link rels that point to AS2 objects
...
...by reusing common.get_as2(). also lots of misc refactoring.
2017-10-20 12:49:48 -07:00
Ryan Barrett
e985516dc3
return parsed JSON from common.get_as2(); use it in activitypub
2017-10-20 07:13:04 -07:00
Ryan Barrett
bb9294ea51
tell common.error() explicitly when to include exc_info
2017-10-17 11:47:01 -07:00
Ryan Barrett
bf0897ba81
activitypub and salmon: return 501 on unsupported activity type
2017-10-16 22:21:13 -07:00
Ryan Barrett
73ac7ba1e7
unify webmention sending from salmon and activitypub into common
2017-10-16 09:13:55 -07:00
Ryan Barrett
6190f3bc0c
refactor abort() calls to use common.error()
2017-10-15 16:57:33 -07:00
Ryan Barrett
f940718790
salmon: support incoming likes and shares (reposts)
2017-10-15 16:57:05 -07:00
Ryan Barrett
f2fa44bfff
activitypub: fetch and include source actor if necessary
...
e.g. for likes and reposts, so that we can render them in our proxy page.
2017-10-12 23:14:46 -07:00
Ryan Barrett
ef89af7372
switch to using Response.get_or_create()
...
also test an incoming activitypub like with an id with a fragment
2017-10-11 18:13:06 -07:00
Ryan Barrett
9a7975bf5d
activitypub: use proxy mf2 URLs for likes and reposts/boosts
...
for #4
2017-10-10 22:42:19 -07:00
Ryan Barrett
6a65e2e74a
store source post in Response
...
...so we can use it to render proxy ActivityPub mf2 pages for webmentions
2017-10-09 21:11:40 -05:00
Ryan Barrett
19a686edc3
store responses in new Response datastore model
2017-10-09 19:29:50 -05:00
Ryan Barrett
41cf159595
activitypub: minor log message bug fix
2017-10-04 16:59:23 -07:00
Ryan Barrett
4f79e6ebd5
incoming activitypub: return 400 for non-replies (likes etc)
...
for #4
2017-10-04 09:07:29 -07:00
Ryan Barrett
71f0a4c8d4
AP: add publicKey to actor object
...
needed for mastodon interop
2017-10-01 07:01:35 -07:00
Ryan Barrett
fcef1e84ec
switch from request.host_url to appengine_config.HOST_URL
...
...because for requests that were redirected, request.host_url would sometimes lose port. no clue how or why.
e.g. testing mastodon interop locally with me@www.brid.gy, mastodon would fetch
https://www.brid.gy/.well-known/webfinger?resource=acct:me@www.brid.gy
which would 302 redirect to
http://localhost:8080/.well-known/webfinger?resource=acct:me@www.brid.gy
and in that request, request.host_url would be http://localhost . but if i curled that second webfinger URL directly, request.host_url would be http://localhost:8080 . weird.
2017-09-30 07:56:40 -07:00
Ryan Barrett
c998901108
update webfinger, AS2, etc for receiving AP
2017-09-28 07:25:21 -07:00
Ryan Barrett
4dd8f7e1a7
mastodon interop: salmon + activitypub + webfinger cleanup, tests
2017-09-03 13:03:31 -07:00
Ryan Barrett
b975d68a72
mastodon interop: webfinger cleanup, tests
2017-09-03 12:35:18 -07:00
Ryan Barrett
c9090401b0
misc tweaks after testing against distbin, mastodon, etc
...
- salmon: use top-level <entry>, not <feed>
- activitypub: actor and attributedTo are objects, not string URLs
- activitypub: cc public audience
- activitypub: use inbox in target post object if available
etc...
2017-08-26 15:20:54 -07:00
Ryan Barrett
b7daa0e4ee
400 when we can't find a representative h-card
2017-08-19 13:31:06 -07:00
Ryan Barrett
c1c99c6ca5
minor activitypub bug fix (default http, not https) and test improvements
2017-08-19 12:29:10 -07:00
Ryan Barrett
6ddd1d66d9
start on webfinger
2017-08-19 08:21:05 -07:00
Ryan Barrett
04e65d612d
add webmention endpoint and conversion to AP inbox delivery
2017-08-15 08:39:32 -07:00
Ryan Barrett
576410005b
extract out requests.get() and user agent header into new common.py file
2017-08-14 23:07:24 -07:00
Ryan Barrett
de217d34ad
rename: bridgy-activitypub => bridgy-federated
...
...merging with bridgy-ostatus!
2017-08-14 12:57:19 -07:00
Ryan Barrett
94c04d41d3
activitypub inbox: accept POSTs, convert to outbound webmention
2017-08-13 14:49:35 -07:00
Ryan Barrett
60a3f7b1cb
activitypub actor endpoint: fetch mf2, convert to AS
2017-08-13 00:12:16 -07:00