mirror of https://gitlab.com/bashrc2/epicyon
flake8 format
parent
6b092d63ec
commit
128e431e9f
10
like.py
10
like.py
|
@ -361,10 +361,12 @@ def sendLikeViaServer(baseDir: str, session,
|
|||
if ':' not in fromDomain:
|
||||
fromDomainFull = fromDomain + ':' + str(fromPort)
|
||||
|
||||
actor = httpPrefix + '://' + fromDomainFull + '/users/' + fromNickname
|
||||
|
||||
newLikeJson = {
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
'type': 'Like',
|
||||
'actor': httpPrefix+'://'+fromDomainFull+'/users/'+fromNickname,
|
||||
'actor': actor,
|
||||
'object': likeUrl
|
||||
}
|
||||
|
||||
|
@ -436,13 +438,15 @@ def sendUndoLikeViaServer(baseDir: str, session,
|
|||
if ':' not in fromDomain:
|
||||
fromDomainFull = fromDomain + ':' + str(fromPort)
|
||||
|
||||
actor = httpPrefix + '://' + fromDomainFull + '/users/' + fromNickname
|
||||
|
||||
newUndoLikeJson = {
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
'type': 'Undo',
|
||||
'actor': httpPrefix+'://'+fromDomainFull+'/users/'+fromNickname,
|
||||
'actor': actor,
|
||||
'object': {
|
||||
'type': 'Like',
|
||||
'actor': httpPrefix+'://'+fromDomainFull+'/users/'+fromNickname,
|
||||
'actor': actor,
|
||||
'object': likeUrl
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue