Remove unused ostatus stuff

master
Bob Mottram 2019-08-24 17:40:28 +01:00
parent ca2e77c14d
commit 2186b5e1cd
3 changed files with 0 additions and 6 deletions

View File

@ -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': {

View File

@ -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

View File

@ -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: