Merge branch 'main' of gitlab.com:bashrc2/epicyon

merge-requests/30/head
Bob Mottram 2021-12-14 15:38:03 +00:00
commit 74f402534e
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,7 @@ from pprint import pprint
from cache import getPersonFromCache
from cache import storePersonInCache
from filters import isFilteredBio
from follow import isFollowingActor
def generateRSAKey() -> (str, str):
@ -1656,6 +1657,10 @@ def validSendingActor(session, baseDir: str,
# who sent this post?
sendingActor = postJsonObject['actor']
# If you are following them then allow their posts
if isFollowingActor(baseDir, nickname, domain, sendingActor):
return True
# sending to yourself (reminder)
if sendingActor.endswith(domain + '/users/' + nickname):
return True