small bugfix, as the Writer no longer as the site_url
This commit is contained in:
parent
8678a764d7
commit
57487b2771
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@ import logging
|
|||
import json
|
||||
import os
|
||||
import urllib.parse
|
||||
import pelican.writers
|
||||
|
||||
from pelican import signals
|
||||
|
||||
|
@ -16,7 +17,7 @@ __version__ = '0.1'
|
|||
pagination = 25
|
||||
|
||||
|
||||
def ap_article(generator, writer):
|
||||
def ap_article(generator: pelican.ArticlesGenerator, writer: pelican.writers.Writer):
|
||||
|
||||
now = datetime.datetime.utcnow()
|
||||
|
||||
|
@ -43,7 +44,7 @@ def ap_article(generator, writer):
|
|||
wknodeinfo = {
|
||||
'links': [
|
||||
{
|
||||
'href': os.path.join(writer.site_url, 'activitypub/nodeinfo'),
|
||||
'href': os.path.join(generator.settings['SITEURL'], 'activitypub/nodeinfo'),
|
||||
'rel': 'http://nodeinfo.diaspora.software/ns/schema/2.0'
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue