mirror of https://gitlab.com/bashrc2/epicyon
Unfollowing
parent
90db9261a9
commit
ff4f67ca73
31
daemon.py
31
daemon.py
|
@ -826,22 +826,21 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Unfollow a person from the web interface by selecting Unfollow on the dropdown
|
# Unfollow a person from the web interface by selecting Unfollow on the dropdown
|
||||||
if htmlGET and '/users/' in self.path:
|
if '/users/' in self.path and '?unfollow=' in self.path:
|
||||||
if '?unfollow=' in self.path:
|
followStr=self.path.split('?unfollow=')[1]
|
||||||
followStr=self.path.split('?unfollow=')[1]
|
originPathStr=self.path.split('?unfollow=')[0]
|
||||||
originPathStr=self.path.split('?unfollow=')[0]
|
if ';' in followStr:
|
||||||
if ';' in followStr:
|
followActor=followStr.split(';')[0]
|
||||||
followActor=followStr.split(';')[0]
|
followProfileUrl=followStr.split(';')[1]
|
||||||
followProfileUrl=followStr.split(';')[1]
|
# show the confirm follow screen
|
||||||
# show the confirm follow screen
|
msg=htmlUnfollowConfirm(self.server.baseDir,originPathStr,followActor,followProfileUrl).encode()
|
||||||
msg=htmlUnfollowConfirm(self.server.baseDir,originPathStr,followActor,followProfileUrl).encode()
|
self._set_headers('text/html',len(msg),cookie)
|
||||||
self._set_headers('text/html',len(msg),cookie)
|
self.wfile.write(msg)
|
||||||
self.wfile.write(msg)
|
self.server.GETbusy=False
|
||||||
self.server.GETbusy=False
|
return
|
||||||
return
|
self._redirect_headers(originPathStr,cookie)
|
||||||
self._redirect_headers(originPathStr,cookie)
|
self.server.GETbusy=False
|
||||||
self.server.GETbusy=False
|
return
|
||||||
return
|
|
||||||
|
|
||||||
# Unblock a person from the web interface by selecting Unblock on the dropdown
|
# Unblock a person from the web interface by selecting Unblock on the dropdown
|
||||||
if htmlGET and '/users/' in self.path:
|
if htmlGET and '/users/' in self.path:
|
||||||
|
|
Loading…
Reference in New Issue