Ryan Barrett
7c10585ad3
/response logs, once more with feeling
2019-04-18 11:18:14 -07:00
Ryan Barrett
f76d796f71
docs: add u-photo for images
...
for #48 , https://github.com/snarfed/bridgy-fed/issues/33#issuecomment-440395450
2019-04-17 09:06:20 -07:00
Ryan Barrett
90f7ac3e5b
add HTML meta redirects to mf2 rendered pages for end users
...
browsers will follow them, and hopefully all webmention receivers should/do ignore them, so we'll get the best progressive enhancement for both worlds.
IRC background:
https://chat.indieweb.org/dev/2019-04-11#t1555004634348000
https://chat.indieweb.org/dev/2019-04-16#t1555440757959400
2019-04-17 08:44:26 -07:00
Ryan Barrett
7a94537721
/responses: link logs for all requests, not just webmention => fed
2019-04-16 14:19:16 -07:00
Ryan Barrett
088e9cfaf7
skip outbound webmentions to same domain as source
2019-04-16 11:42:17 -07:00
Ryan Barrett
76686af538
cache lots of GET requests
...
this helps with requests that make external HTTP fetches, eg indieweb home pages/posts and federated profiles/posts, which change rarely.
in particular, outbound AP requests that get federated widely (eg Mastodon) result in all of those federated instances making the same bridgy fed requests at the same time, often within just a few seconds. more background: tootsuite/mastodon#4486
2019-04-16 11:05:18 -07:00
Ryan Barrett
aa45f0c526
convert AP mentions to home page webmentions
...
for #46
2019-04-16 10:46:40 -07:00
Ryan Barrett
5bc639216e
more error handling for AS2 objects without id or URL
...
follows b7e44c9295
. fixes https://console.cloud.google.com/errors/CLnu14G46vHLOg
2019-04-15 08:14:37 -07:00
Ryan Barrett
b7e44c9295
don't choke on AS2 objects without id or URL
...
fixes https://console.cloud.google.com/errors/CO6w076w6oX32wE
2019-04-12 20:47:28 -07:00
Ryan Barrett
6e7c2008e9
handle SSL failures when fetching arbitrary URLs
...
fixes https://console.cloud.google.com/errors/CJOuzd2b1sehPA
2019-04-10 08:08:02 -07:00
Ryan Barrett
2e33354c27
add following and followers fields to AS2 actors
...
for #40 . they currently both point to endpoint URLs that don't actually work yet, just like the recently added outbox field.
2019-01-14 11:08:08 -08:00
Ryan Barrett
b7e8cd7d42
add conneg + AS2 support to /r/... redirect URLs
...
for pixelfed, #39 . specifically, if the client asks for application/activity+json or application/ld+json (which pixelfed does), fetch and convert to AS2 instead of returning a 302 redirect.
2019-01-04 12:17:50 -08:00
Ryan Barrett
b237e52d6a
add outbox, summary, and publicKey.id properties to actors
...
for #39 , for pixelfed
2019-01-04 08:05:07 -08:00
Ryan Barrett
aa5fac01dd
webmention => AP: fix error handling for outbound AP requests
2018-12-11 11:00:54 -08:00
Ryan Barrett
b7f89dce99
webmention => AP: handle actor/attributedTo id as well as url
...
for #40
2018-12-11 10:59:41 -08:00
Ryan Barrett
0af5c136bb
webmention => AP/Salmon: handle no targets or followers, return 200
...
fixes https://console.cloud.google.com/errors/CIrig_2B6_i87AE
2018-11-27 15:14:56 -08:00
Ryan Barrett
e964190162
webmention => AP: check for link to bridgy fed in source page
...
fixes #42
2018-11-27 10:27:12 -08:00
Ryan Barrett
9849c8a15d
docs: expand on discovery
...
fixes #18 . thanks again @swentel!
2018-11-25 09:26:54 -08:00
Ryan Barrett
cd8a13312c
webmention => AP: add original posts to docs
...
fixes #33
2018-11-24 22:35:20 -08:00
Ryan Barrett
a9324adceb
webmention => AP: put images into AS2 'attachment' field for Mastodon
...
for https://github.com/snarfed/bridgy-fed/issues/33#issuecomment-440965618
2018-11-23 22:17:37 -08:00
Ryan Barrett
a52765821f
stop emailing me on every inbound webmention
2018-11-23 21:28:02 -08:00
Ryan Barrett
a89e0038de
webmention => AP: Create: another bug fix for string Follower actors
...
for #33 . follow-up to 2cb0dda2d1
.
2018-11-20 09:47:01 -08:00
Ryan Barrett
2cb0dda2d1
webmention => AP: Create: handle Follower with actor URL instead of object
...
we don't create these any more, we always fetch and store full actor objects, but we have a few old ones lying around in the prod datastore.
for #33
2018-11-20 08:37:57 -08:00
Ryan Barrett
11c66cfd3e
webmention => AP: fix AP replies etc after big Create refactoring
...
for #33
2018-11-20 08:24:29 -08:00
Ryan Barrett
ec3da6a485
webmention => AP: fix Salmon after big Create refactoring
...
for #33
2018-11-20 08:24:26 -08:00
Ryan Barrett
a88165c4e3
webmention => AP: big refactoring to support Create
...
#33 . still in progress!
2018-11-16 07:09:55 -08:00
Ryan Barrett
1c728f6590
AP => webmention: fetch actor for all activity types, including replies
...
fixes #41
2018-11-15 13:03:32 -08:00
Ryan Barrett
777a62208d
bump granary req't up to 1.14 for AS1/mf2 follow support
...
specifically snarfed/granary@6ef49f42e2
2018-11-15 13:01:52 -08:00
Ryan Barrett
0eb14e93d7
docs for follow support
...
#21
2018-10-24 21:53:59 -07:00
Ryan Barrett
1c41aa4fd0
AP: blindly accept all Accepts
...
#21
2018-10-24 21:44:21 -07:00
Ryan Barrett
2bb418dc72
webmention => AP support for u-follow-of => Follow
2018-10-24 21:28:52 -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
0f11cd1ff1
normalize user domains to URLs (with scheme) by following redirects
...
#21 , for getting translated webmentions to have u-follow-of with full URL values, not just domains.
2018-10-23 12:39:16 -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
e090c2ba0a
AP Follow bug fix: actors are fed.brid.gy/DOMAIN, not /r/ redirect URLs
2018-10-21 18:54:27 -07:00
Ryan Barrett
197d8a561f
fix tests broken by a4b309afef
...
#21
2018-10-21 18:00:12 -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
0b951d6570
add noop handler for /superfeedr/* that just logs the request
...
for #18
2018-10-17 14:39:25 -07:00
Ryan Barrett
27e56396b8
AP => wm: remove our redirect from target URLs
...
fixes the second half of #35
2018-10-17 12:00:38 -07:00
Ryan Barrett
9fb7f2fe26
AP => wm: prefer object URL for webmention source if available
...
fixes half of #35
2018-10-17 11:52:34 -07:00
Ryan Barrett
eea19045ff
wm => AP: drop warning on 202 response, now that mastodon is fixed
...
for #16
2018-10-17 07:41:41 -07:00
Ryan Barrett
dfe9479838
yet another circle fix
2018-10-16 11:55:50 -07:00
swentel
9557216789
Add link to Drupal
2018-10-16 11:49:25 -07:00
Ryan Barrett
6503045225
fix flaky test failure from importing webutil.testutil_appengine
...
eg https://circleci.com/gh/snarfed/bridgy-fed/164
```
testutil_appengine (unittest.loader.ModuleImportFailure) ... ERROR
...
======================================================================
ERROR: testutil_appengine (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: testutil_appengine
Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
__import__(name)
File "/tmp/oauth-dropins/oauth_dropins/webutil/testutil_appengine.py", line 4, in <module>
from google.appengine.datastore import datastore_stub_util
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/datastore/datastore_stub_util.py", line 69, in <module>
from google.appengine.datastore import datastore_stub_index
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/datastore/datastore_stub_index.py", line 45, in <module>
import yaml
ImportError: No module named yaml
```
2018-10-16 11:44:54 -07:00
Ryan Barrett
25d2724700
add Mention tag for Mastodon replies
...
fixes #34 . thanks @swentel!
2018-10-16 11:38:12 -07:00
Ryan Barrett
a0f6f669b7
circle: omit tests, etc from coverage
2018-10-16 11:00:40 -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