Remove whitespace

main
Bob Mottram 2019-11-14 21:12:09 +00:00
parent b87e752d3b
commit bd06e8925a
1 changed files with 5 additions and 5 deletions

View File

@ -1384,7 +1384,7 @@ class PubServer(BaseHTTPRequestHandler):
createSession(self.server.useTor) createSession(self.server.useTor)
self.server.actorRepeat=self.path.split('?actor=')[1] self.server.actorRepeat=self.path.split('?actor=')[1]
if '?' in self.server.actorRepeat: if '?' in self.server.actorRepeat:
self.server.actorRepeat=self.server.actorRepeat.split('?')[0] self.server.actorRepeat=self.server.actorRepeat.split('?')[0]
announceJson= \ announceJson= \
createAnnounce(self.server.session, \ createAnnounce(self.server.session, \
self.server.baseDir, \ self.server.baseDir, \
@ -1400,7 +1400,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.cachedWebfingers, \ self.server.cachedWebfingers, \
self.server.debug, \ self.server.debug, \
self.server.projectVersion) self.server.projectVersion)
if announceJson: if announceJson:
self._postToOutboxThread(announceJson) self._postToOutboxThread(announceJson)
self.server.GETbusy=False self.server.GETbusy=False
self._redirect_headers(actor+'/'+timelineStr+'?page='+ \ self._redirect_headers(actor+'/'+timelineStr+'?page='+ \
@ -1437,7 +1437,7 @@ class PubServer(BaseHTTPRequestHandler):
createSession(self.server.useTor) createSession(self.server.useTor)
self.server.actorRepeat=self.path.split('?actor=')[1] self.server.actorRepeat=self.path.split('?actor=')[1]
if '?' in self.server.actorRepeat: if '?' in self.server.actorRepeat:
self.server.actorRepeat=self.server.actorRepeat.split('?')[0] self.server.actorRepeat=self.server.actorRepeat.split('?')[0]
undoAnnounceActor= \ undoAnnounceActor= \
self.server.httpPrefix+'://'+self.server.domainFull+ \ self.server.httpPrefix+'://'+self.server.domainFull+ \
'/users/'+self.postToNickname '/users/'+self.postToNickname
@ -1549,7 +1549,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.domainFull+'/users/'+self.postToNickname self.server.domainFull+'/users/'+self.postToNickname
self.server.actorLiked=self.path.split('?actor=')[1] self.server.actorLiked=self.path.split('?actor=')[1]
if '?' in self.server.actorLiked: if '?' in self.server.actorLiked:
self.server.actorLiked=self.server.actorLiked.split('?')[0] self.server.actorLiked=self.server.actorLiked.split('?')[0]
likeJson= { likeJson= {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
'type': 'Like', 'type': 'Like',
@ -1605,7 +1605,7 @@ class PubServer(BaseHTTPRequestHandler):
} }
self.server.actorLiked=self.path.split('?actor=')[1] self.server.actorLiked=self.path.split('?actor=')[1]
if '?' in self.server.actorLiked: if '?' in self.server.actorLiked:
self.server.actorLiked=self.server.actorLiked.split('?')[0] self.server.actorLiked=self.server.actorLiked.split('?')[0]
self._postToOutbox(undoLikeJson) self._postToOutbox(undoLikeJson)
self.server.GETbusy=False self.server.GETbusy=False
self._redirect_headers(actor+'/'+timelineStr+ \ self._redirect_headers(actor+'/'+timelineStr+ \