Change endpoint name

main
Bob Mottram 2022-11-15 20:02:50 +00:00
parent c5731cc052
commit c67ce06ea6
2 changed files with 6 additions and 11 deletions

View File

@ -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]

View File

@ -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">' + \