Blog post url

main
Bob Mottram 2020-03-01 13:16:02 +00:00
parent 87581299ce
commit 8c34555db3
1 changed files with 13 additions and 14 deletions

View File

@ -2383,20 +2383,19 @@ class PubServer(BaseHTTPRequestHandler):
actor=actor.split('?')[0]
nickname=getNicknameFromActor(self.path)
if nickname==actor:
msg=None
nickname=getNicknameFromActor(self.path)
if nickname:
postUrl=pathWithoutOptions+'/statuses/'+messageId
print('Edit blog nickname: '+nickname)
print('Edit blog post: '+postUrl)
msg=htmlEditBlog(self.server.mediaInstance, \
self.server.translate, \
self.server.baseDir, \
self.server.httpPrefix, \
self.path, \
replyPageNumber, \
nickname,self.server.domain, \
postUrl)
postUrl= \
self.server.domainFull+'/users/'+nickname+ \
'/statuses/'+messageId
print('Edit blog nickname: '+nickname)
print('Edit blog post: '+postUrl)
msg=htmlEditBlog(self.server.mediaInstance, \
self.server.translate, \
self.server.baseDir, \
self.server.httpPrefix, \
self.path, \
replyPageNumber, \
nickname,self.server.domain, \
postUrl)
if msg:
print('Edit blog write: '+postUrl)
msg=msg.encode()