forked from indymedia/epicyon
Set timeline
parent
5fe0e5d381
commit
3e477ccf9f
3
blog.py
3
blog.py
|
@ -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>'
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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']+'">'+ \
|
||||
|
|
Loading…
Reference in New Issue