mirror of https://gitlab.com/bashrc2/epicyon
No name
parent
01b8eb1409
commit
1f366d27cf
3
like.py
3
like.py
|
@ -10,7 +10,7 @@ import json
|
||||||
import commentjson
|
import commentjson
|
||||||
from utils import urlPermitted
|
from utils import urlPermitted
|
||||||
|
|
||||||
def like(baseDir: str,federationList: [],username: str, domain: str, port: int,toUrl: str, ccUrl: str, https: bool, comment: str,objectUrl: str, saveToFile: bool) -> {}:
|
def like(baseDir: str,federationList: [],username: str, domain: str, port: int,toUrl: str, ccUrl: str, https: bool,objectUrl: str, saveToFile: bool) -> {}:
|
||||||
"""Creates a like
|
"""Creates a like
|
||||||
Typically toUrl will be a followers collection
|
Typically toUrl will be a followers collection
|
||||||
and ccUrl might be a specific person whose post was liked
|
and ccUrl might be a specific person whose post was liked
|
||||||
|
@ -29,7 +29,6 @@ def like(baseDir: str,federationList: [],username: str, domain: str, port: int,t
|
||||||
newLike = {
|
newLike = {
|
||||||
'type': 'Like',
|
'type': 'Like',
|
||||||
'actor': prefix+'://'+domain+'/users/'+username,
|
'actor': prefix+'://'+domain+'/users/'+username,
|
||||||
'name': comment,
|
|
||||||
'object': objectUrl,
|
'object': objectUrl,
|
||||||
'to': [toUrl],
|
'to': [toUrl],
|
||||||
'cc': [],
|
'cc': [],
|
||||||
|
|
Loading…
Reference in New Issue