From 9e5e34c0713b535fb617d3500e1dc68fa56988d6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 15 Nov 2019 14:34:11 +0000 Subject: [PATCH] Don't use threading for likes --- daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index feb31104..7655db2a 100644 --- a/daemon.py +++ b/daemon.py @@ -999,7 +999,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('X-Robots-Tag','noindex') self.end_headers() return - + # get css # Note that this comes before the busy flag to avoid conflicts if self.path.endswith('.css'): @@ -1564,7 +1564,7 @@ class PubServer(BaseHTTPRequestHandler): 'to': [actorLiked], 'object': likeUrl } - self._postToOutboxThread(likeJson) + self._postToOutbox(likeJson,self.server.projectVersion) self.server.GETbusy=False self._redirect_headers(actor+'/'+timelineStr+ \ '?page='+str(pageNumber),cookie) @@ -1616,7 +1616,7 @@ class PubServer(BaseHTTPRequestHandler): 'object': likeUrl } } - self._postToOutboxThread(undoLikeJson) + self._postToOutbox(undoLikeJson,self.server.projectVersion) self.server.GETbusy=False self._redirect_headers(actor+'/'+timelineStr+ \ '?page='+str(pageNumber),cookie)