forked from indymedia/epicyon
Don't need actorLiked
parent
50ea25d767
commit
4b39111b38
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue