diff --git a/person.py b/person.py index 181e2ea8d..30214cc38 100644 --- a/person.py +++ b/person.py @@ -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