mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 18:05:22 +00:00
Handle trailing slashes
This commit is contained in:
1 parent
5297eb1b64
commit
302e1ed036
1 file changed
+5
-1
+5
-1
@@ -492,7 +492,11 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
|
||||
postUrl = url
|
||||
if mirrored and '://' in url:
|
||||
postUrl = '/newsmirror/' + statusNumber + '/' + \
|
||||
url.split('://')[1] + '/index.html'
|
||||
url.split('://')[1]
|
||||
if postUrl.endswith('/'):
|
||||
postUrl += 'index.html'
|
||||
else:
|
||||
postUrl += '/index.html'
|
||||
|
||||
# add the off-site link to the description
|
||||
if rssDescription and not dangerousMarkup(rssDescription):
|
||||
|
||||
Reference in new issue
Block a user