mirror of https://gitlab.com/bashrc2/epicyon
Change endpoint name
parent
c5731cc052
commit
c67ce06ea6
|
@ -18239,7 +18239,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
edit_post_params = {}
|
edit_post_params = {}
|
||||||
if authorized and \
|
if authorized and \
|
||||||
'/users/' in self.path and \
|
'/users/' in self.path and \
|
||||||
'/editpost?scope=' in self.path and \
|
'/postedit?scope=' in self.path and \
|
||||||
';postid=' in self.path and \
|
';postid=' in self.path and \
|
||||||
';actor=' in self.path:
|
';actor=' in self.path:
|
||||||
post_scope = self.path.split('?scope=')[1]
|
post_scope = self.path.split('?scope=')[1]
|
||||||
|
|
|
@ -542,8 +542,7 @@ def _get_edit_icon_html(base_dir: str, nickname: str, domain_full: str,
|
||||||
edit_str += \
|
edit_str += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<a class="imageAnchor" href="/users/' + \
|
'<a class="imageAnchor" href="/users/' + \
|
||||||
nickname + \
|
nickname + '/tlblogs?editblogpost=' + \
|
||||||
'/tlblogs?editblogpost=' + \
|
|
||||||
post_id.split('/statuses/')[1] + \
|
post_id.split('/statuses/')[1] + \
|
||||||
';actor=' + actor_nickname + \
|
';actor=' + actor_nickname + \
|
||||||
'" title="' + edit_blog_post_str + '" tabindex="10">' + \
|
'" title="' + edit_blog_post_str + '" tabindex="10">' + \
|
||||||
|
@ -583,8 +582,7 @@ def _get_edit_icon_html(base_dir: str, nickname: str, domain_full: str,
|
||||||
edit_str += \
|
edit_str += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<a class="imageAnchor" href="/users/' + \
|
'<a class="imageAnchor" href="/users/' + \
|
||||||
nickname + \
|
nickname + '/postedit?scope=public;postid=' + \
|
||||||
'/editpost?scope=public;postid=' + \
|
|
||||||
post_id.split('/statuses/')[1] + \
|
post_id.split('/statuses/')[1] + \
|
||||||
';actor=' + actor_nickname + \
|
';actor=' + actor_nickname + \
|
||||||
'" title="' + edit_post_str + '" tabindex="10">' + \
|
'" title="' + edit_post_str + '" tabindex="10">' + \
|
||||||
|
@ -599,8 +597,7 @@ def _get_edit_icon_html(base_dir: str, nickname: str, domain_full: str,
|
||||||
edit_str += \
|
edit_str += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<a class="imageAnchor" href="/users/' + \
|
'<a class="imageAnchor" href="/users/' + \
|
||||||
nickname + \
|
nickname + '/postedit?scope=dm;postid=' + \
|
||||||
'/editpost?scope=dm;postid=' + \
|
|
||||||
post_id.split('/statuses/')[1] + \
|
post_id.split('/statuses/')[1] + \
|
||||||
';actor=' + actor_nickname + \
|
';actor=' + actor_nickname + \
|
||||||
'" title="' + edit_post_str + '" tabindex="10">' + \
|
'" title="' + edit_post_str + '" tabindex="10">' + \
|
||||||
|
@ -615,8 +612,7 @@ def _get_edit_icon_html(base_dir: str, nickname: str, domain_full: str,
|
||||||
edit_str += \
|
edit_str += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<a class="imageAnchor" href="/users/' + \
|
'<a class="imageAnchor" href="/users/' + \
|
||||||
nickname + \
|
nickname + '/postedit?scope=unlisted;postid=' + \
|
||||||
'/editpost?scope=unlisted;postid=' + \
|
|
||||||
post_id.split('/statuses/')[1] + \
|
post_id.split('/statuses/')[1] + \
|
||||||
';actor=' + actor_nickname + \
|
';actor=' + actor_nickname + \
|
||||||
'" title="' + edit_post_str + '" tabindex="10">' + \
|
'" title="' + edit_post_str + '" tabindex="10">' + \
|
||||||
|
@ -631,8 +627,7 @@ def _get_edit_icon_html(base_dir: str, nickname: str, domain_full: str,
|
||||||
edit_str += \
|
edit_str += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<a class="imageAnchor" href="/users/' + \
|
'<a class="imageAnchor" href="/users/' + \
|
||||||
nickname + \
|
nickname + '/postedit?scope=followers;postid=' + \
|
||||||
'/editpost?scope=followers;postid=' + \
|
|
||||||
post_id.split('/statuses/')[1] + \
|
post_id.split('/statuses/')[1] + \
|
||||||
';actor=' + actor_nickname + \
|
';actor=' + actor_nickname + \
|
||||||
'" title="' + edit_post_str + '" tabindex="10">' + \
|
'" title="' + edit_post_str + '" tabindex="10">' + \
|
||||||
|
|
Loading…
Reference in New Issue