kopia lustrzana https://github.com/snarfed/bridgy-fed
minor noop comment tweaks
rodzic
abe6b360d2
commit
e95f6aa9d3
|
@ -36,7 +36,6 @@ SUPPORTED_VERBS = (
|
||||||
@app.post(f'/<regex("{common.ACCT_RE}|{common.DOMAIN_RE}"):acct>/salmon')
|
@app.post(f'/<regex("{common.ACCT_RE}|{common.DOMAIN_RE}"):acct>/salmon')
|
||||||
def slap(acct):
|
def slap(acct):
|
||||||
"""Accepts POSTs to /[ACCT]/salmon and converts to outbound webmentions."""
|
"""Accepts POSTs to /[ACCT]/salmon and converts to outbound webmentions."""
|
||||||
# TODO: unify with activitypub
|
|
||||||
body = request.get_data(as_text=True)
|
body = request.get_data(as_text=True)
|
||||||
logger.info(f'Got: {body}')
|
logger.info(f'Got: {body}')
|
||||||
|
|
||||||
|
|
|
@ -410,7 +410,7 @@ class ActivityPubTest(testutil.TestCase):
|
||||||
got = self.client.post('/realize.be/inbox', json=DELETE)
|
got = self.client.post('/realize.be/inbox', json=DELETE)
|
||||||
self.assertEqual(200, got.status_code)
|
self.assertEqual(200, got.status_code)
|
||||||
|
|
||||||
# TODO: bring back
|
# TODO: bring back once we actually delete followers
|
||||||
# self.assertEqual([other], Follower.query().fetch())
|
# self.assertEqual([other], Follower.query().fetch())
|
||||||
|
|
||||||
def test_inbox_webmention_discovery_connection_fails(self, mock_head,
|
def test_inbox_webmention_discovery_connection_fails(self, mock_head,
|
||||||
|
|
Ładowanie…
Reference in New Issue