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:
|
if '?' in path:
|
||||||
path=path.split('?')[0]
|
path=path.split('?')[0]
|
||||||
pathBase= \
|
pathBase=path
|
||||||
path.replace('/editblogpost','')
|
|
||||||
|
|
||||||
editBlogImageSection =' <div class="container">'
|
editBlogImageSection =' <div class="container">'
|
||||||
editBlogImageSection+=' <label class="labels">'+translate['Image description']+'</label>'
|
editBlogImageSection+=' <label class="labels">'+translate['Image description']+'</label>'
|
||||||
|
|
|
@ -2372,6 +2372,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
# Edit a blog post
|
# Edit a blog post
|
||||||
if authorized and \
|
if authorized and \
|
||||||
|
'/tlblogs' in self.path and \
|
||||||
'?editblogpost=' in self.path and \
|
'?editblogpost=' in self.path and \
|
||||||
'?actor=' in self.path:
|
'?actor=' in self.path:
|
||||||
messageId=self.path.split('?editblogpost=')[1]
|
messageId=self.path.split('?editblogpost=')[1]
|
||||||
|
|
|
@ -2994,7 +2994,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
|
||||||
if isBlogPost(postJsonObject):
|
if isBlogPost(postJsonObject):
|
||||||
if '/statuses/' in postJsonObject['object']['id']:
|
if '/statuses/' in postJsonObject['object']['id']:
|
||||||
editStr+= \
|
editStr+= \
|
||||||
'<a href="/users/'+nickname+'?editblogpost='+ \
|
'<a href="/users/'+nickname+'/tlblogs?editblogpost='+ \
|
||||||
postJsonObject['object']['id'].split('/statuses/')[1]+ \
|
postJsonObject['object']['id'].split('/statuses/')[1]+ \
|
||||||
'?actor='+actorNickname+ \
|
'?actor='+actorNickname+ \
|
||||||
'" title="'+translate['Edit blog post']+'">'+ \
|
'" title="'+translate['Edit blog post']+'">'+ \
|
||||||
|
|
Loading…
Reference in New Issue