mirror of https://gitlab.com/bashrc2/epicyon
Don't remove mentions for public posts
parent
85a41dbbb1
commit
04e7addaf7
5
posts.py
5
posts.py
|
@ -1446,6 +1446,7 @@ def _createPostBase(baseDir: str,
|
||||||
|
|
||||||
postContext = getIndividualPostContext()
|
postContext = getIndividualPostContext()
|
||||||
|
|
||||||
|
if not isPublic:
|
||||||
# make sure that CC doesn't also contain a To address
|
# make sure that CC doesn't also contain a To address
|
||||||
# eg. To: [ "https://mydomain/users/foo/followers" ]
|
# eg. To: [ "https://mydomain/users/foo/followers" ]
|
||||||
# CC: [ "X", "Y", "https://mydomain/users/foo", "Z" ]
|
# CC: [ "X", "Y", "https://mydomain/users/foo", "Z" ]
|
||||||
|
@ -1458,8 +1459,8 @@ def _createPostBase(baseDir: str,
|
||||||
break
|
break
|
||||||
for ccRemoval in removeFromCC:
|
for ccRemoval in removeFromCC:
|
||||||
toCC.remove(ccRemoval)
|
toCC.remove(ccRemoval)
|
||||||
|
else:
|
||||||
if inReplyTo and isPublic:
|
if inReplyTo:
|
||||||
# If this is a public post then get the actor being
|
# If this is a public post then get the actor being
|
||||||
# replied to end ensure that it is within the CC list
|
# replied to end ensure that it is within the CC list
|
||||||
replyActor = getActorFromInReplyTo(inReplyTo)
|
replyActor = getActorFromInReplyTo(inReplyTo)
|
||||||
|
|
Loading…
Reference in New Issue