Don't need actorLiked

main
Bob Mottram 2019-11-14 17:58:46 +00:00
parent 50ea25d767
commit 4b39111b38
1 changed files with 4 additions and 6 deletions

View File

@ -1510,7 +1510,7 @@ class PubServer(BaseHTTPRequestHandler):
return
# like from the web interface icon
if htmlGET and '?like=' in self.path and '/statuses/' in self.path:
if htmlGET and '?like=' in self.path:
pageNumber=1
likeUrl=self.path.split('?like=')[1]
if '?' in likeUrl:
@ -1541,7 +1541,6 @@ class PubServer(BaseHTTPRequestHandler):
likeActor= \
self.server.httpPrefix+'://'+ \
self.server.domainFull+'/users/'+self.postToNickname
actorLiked=likeUrl.split('/statuses/')[0]
likeJson= {
"@context": "https://www.w3.org/ns/activitystreams",
'type': 'Like',
@ -1555,7 +1554,7 @@ class PubServer(BaseHTTPRequestHandler):
return
# undo a like from the web interface icon
if htmlGET and '?unlike=' in self.path and '/statuses/' in self.path:
if htmlGET and '?unlike=' in self.path:
pageNumber=1
likeUrl=self.path.split('?unlike=')[1]
if '?' in likeUrl:
@ -1585,7 +1584,6 @@ class PubServer(BaseHTTPRequestHandler):
undoActor= \
self.server.httpPrefix+'://'+ \
self.server.domainFull+'/users/'+self.postToNickname
actorLiked=likeUrl.split('/statuses/')[0]
undoLikeJson= {
"@context": "https://www.w3.org/ns/activitystreams",
'type': 'Undo',