mirror of https://gitlab.com/bashrc2/epicyon
Remove unused ostatus stuff
parent
ca2e77c14d
commit
2186b5e1cd
|
@ -167,7 +167,6 @@ def createPersonBase(baseDir: str,nickname: str,domain: str,port: int, \
|
|||
'manuallyApprovesFollowers': 'as:manuallyApprovesFollowers',
|
||||
'movedTo': {'@id': 'as:movedTo', '@type': '@id'},
|
||||
'schema': 'http://schema.org#',
|
||||
'toot': 'http://joinmastodon.org/ns#',
|
||||
'value': 'schema:value'}],
|
||||
'attachment': [],
|
||||
'endpoints': {
|
||||
|
|
4
posts.py
4
posts.py
|
@ -447,8 +447,6 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
|
|||
hashtagsDict)
|
||||
|
||||
statusNumber,published = getStatusNumber()
|
||||
conversationDate=published.split('T')[0]
|
||||
conversationId=statusNumber
|
||||
postTo='https://www.w3.org/ns/activitystreams#Public'
|
||||
postCC=httpPrefix+'://'+domain+'/users/'+nickname+'/followers'
|
||||
if followersOnly:
|
||||
|
@ -524,7 +522,6 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
|
|||
'sensitive': sensitive,
|
||||
'atomUri': newPostId,
|
||||
'inReplyToAtomUri': inReplyToAtomUri,
|
||||
'conversation': 'tag:'+domain+','+conversationDate+':objectId='+conversationId+':objectType=Conversation',
|
||||
'content': content,
|
||||
'contentMap': {
|
||||
'en': content
|
||||
|
@ -562,7 +559,6 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
|
|||
'sensitive': sensitive,
|
||||
'atomUri': newPostId,
|
||||
'inReplyToAtomUri': inReplyToAtomUri,
|
||||
'conversation': 'tag:'+domain+','+conversationDate+':objectId='+conversationId+':objectType=Conversation',
|
||||
'content': content,
|
||||
'contentMap': {
|
||||
'en': content
|
||||
|
|
1
utils.py
1
utils.py
|
@ -18,7 +18,6 @@ def getStatusNumber() -> (str,str):
|
|||
# status is the number of seconds since epoch
|
||||
statusNumber=str(((daysSinceEpoch*24*60*60) + (currTime.hour*60*60) + (currTime.minute*60) + currTime.second)*1000000 + currTime.microsecond)
|
||||
published=currTime.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
conversationDate=currTime.strftime("%Y-%m-%d")
|
||||
return statusNumber,published
|
||||
|
||||
def createPersonDir(nickname: str,domain: str,baseDir: str,dirname: str) -> str:
|
||||
|
|
Loading…
Reference in New Issue