Handle webmention endpoint discovery separately - sendWebmention() is meant to do it itself but doesn't quite work
This commit is contained in:
parent
5308e28d98
commit
5349fc4c96
1 changed files with 5 additions and 3 deletions
|
@ -11,7 +11,9 @@ def ping_hub(*urls):
|
|||
|
||||
|
||||
@job
|
||||
def send_mentions(url):
|
||||
result = webmention.findMentions(url)
|
||||
def send_mentions(source):
|
||||
result = webmention.findMentions(source)
|
||||
for target in result['refs']:
|
||||
webmention.sendWebmention(url, target)
|
||||
status, endpoint = webmention.discoverEndpoint(target)
|
||||
if endpoint is not None and status == 200:
|
||||
webmention.sendWebmention(source, target, endpoint)
|
||||
|
|
Loading…
Reference in a new issue