diff --git a/person.py b/person.py index c80d93a87..7c3e4c044 100644 --- a/person.py +++ b/person.py @@ -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': { diff --git a/posts.py b/posts.py index 561f69099..968e242a3 100644 --- a/posts.py +++ b/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 diff --git a/utils.py b/utils.py index d4ec8ca54..f1282bf77 100644 --- a/utils.py +++ b/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: