forked from indymedia/epicyon
Link follow confirmation to search screen
parent
82a8032b6c
commit
dffe45afda
|
@ -1363,7 +1363,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return
|
return
|
||||||
|
|
||||||
# remove any trailing slashes from the path
|
# remove any trailing slashes from the path
|
||||||
self.path=self.path.replace('/outbox/','/outbox').replace('/inbox/','/inbox').replace('/shares/','/shares').replace('/sharedInbox/','/sharedInbox')
|
if not self.path.endswith('confirm'):
|
||||||
|
self.path=self.path.replace('/outbox/','/outbox').replace('/inbox/','/inbox').replace('/shares/','/shares').replace('/sharedInbox/','/sharedInbox')
|
||||||
|
|
||||||
cookie=None
|
cookie=None
|
||||||
if self.headers.get('Cookie'):
|
if self.headers.get('Cookie'):
|
||||||
|
|
|
@ -768,6 +768,12 @@ def htmlProfileAfterSearch(baseDir: str,path: str,httpPrefix: str, \
|
||||||
|
|
||||||
profileStyle = cssFile.read().replace('image.png',profileBackgroundImage)
|
profileStyle = cssFile.read().replace('image.png',profileBackgroundImage)
|
||||||
|
|
||||||
|
# url to return to
|
||||||
|
backUrl=path
|
||||||
|
if not backUrl.endswith('/inbox'):
|
||||||
|
backUrl+='/inbox'
|
||||||
|
|
||||||
|
print('************************ <form method="POST" action="'+backUrl+'/followconfirm">')
|
||||||
profileStr= \
|
profileStr= \
|
||||||
' <div class="hero-image">' \
|
' <div class="hero-image">' \
|
||||||
' <div class="hero-text">' \
|
' <div class="hero-text">' \
|
||||||
|
@ -778,10 +784,13 @@ def htmlProfileAfterSearch(baseDir: str,path: str,httpPrefix: str, \
|
||||||
' </div>' \
|
' </div>' \
|
||||||
'</div>'+ \
|
'</div>'+ \
|
||||||
'<div class="container">\n' \
|
'<div class="container">\n' \
|
||||||
' <center>' \
|
' <form method="POST" action="'+backUrl+'/followconfirm">' \
|
||||||
' <a href="'+path+'"><button class="button"><span>Follow </span></button></a>' \
|
' <center>' \
|
||||||
' <a href="'+path+'"><button class="button"><span>Go Back </span></button></a>' \
|
' <input type="hidden" name="actor" value="'+personUrl+'">' \
|
||||||
' </center>' \
|
' <button type="submit" class="button" name="submitYes">Follow</button>' \
|
||||||
|
' <a href="'+backUrl+'"><button class="button">Go Back</button></a>' \
|
||||||
|
' </center>' \
|
||||||
|
' </form>' \
|
||||||
'</div>'
|
'</div>'
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
|
|
Loading…
Reference in New Issue