merge-requests/30/head
Bob Mottram 2020-10-10 23:11:25 +01:00
parent 325da0b8ce
commit 2f8b6052e7
2 changed files with 1 additions and 3 deletions

View File

@ -8118,6 +8118,7 @@ class PubServer(BaseHTTPRequestHandler):
postId = postId.split('?')[0] postId = postId.split('?')[0]
postUrl = httpPrefix + '://' + domainFull + \ postUrl = httpPrefix + '://' + domainFull + \
'/users/news/statuses/' + postId '/users/news/statuses/' + postId
path = path.split('/editnewspost=')[0]
print('TEST path: ' + path) print('TEST path: ' + path)
print('TEST postUrl: ' + postUrl) print('TEST postUrl: ' + postUrl)
msg = htmlEditNewsPost(translate, baseDir, msg = htmlEditNewsPost(translate, baseDir,

View File

@ -1357,9 +1357,6 @@ def htmlEditNewsPost(translate: {}, baseDir: str, path: str,
return '' return ''
print('TEST htmlEditNewsPost 2: ') print('TEST htmlEditNewsPost 2: ')
pathOriginal = path pathOriginal = path
path = path.replace('/inbox', '').replace('/outbox', '')
path = path.replace('/shares', '')
path = path.replace('/tlnews', '')
nickname = getNicknameFromActor(path) nickname = getNicknameFromActor(path)
print('TEST htmlEditNewsPost 3: ' + str(nickname)) print('TEST htmlEditNewsPost 3: ' + str(nickname))