Set timeline

main
Bob Mottram 2020-03-01 12:43:20 +00:00
parent 5fe0e5d381
commit 3e477ccf9f
3 changed files with 3 additions and 3 deletions

View File

@ -566,8 +566,7 @@ def htmlEditBlog(mediaInstance: bool,translate: {}, \
if '?' in path:
path=path.split('?')[0]
pathBase= \
path.replace('/editblogpost','')
pathBase=path
editBlogImageSection =' <div class="container">'
editBlogImageSection+=' <label class="labels">'+translate['Image description']+'</label>'

View File

@ -2372,6 +2372,7 @@ class PubServer(BaseHTTPRequestHandler):
# Edit a blog post
if authorized and \
'/tlblogs' in self.path and \
'?editblogpost=' in self.path and \
'?actor=' in self.path:
messageId=self.path.split('?editblogpost=')[1]

View File

@ -2994,7 +2994,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
if isBlogPost(postJsonObject):
if '/statuses/' in postJsonObject['object']['id']:
editStr+= \
'<a href="/users/'+nickname+'?editblogpost='+ \
'<a href="/users/'+nickname+'/tlblogs?editblogpost='+ \
postJsonObject['object']['id'].split('/statuses/')[1]+ \
'?actor='+actorNickname+ \
'" title="'+translate['Edit blog post']+'">'+ \