Only public posts with hashtags are indexed

master
Bob Mottram 2019-08-10 12:51:54 +01:00
parent 2941b9df33
commit 4dccb042b0
1 changed files with 7 additions and 1 deletions

View File

@ -435,6 +435,12 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
if hashtagsDict:
for tagName,tag in hashtagsDict.items():
tags.append(tag)
isPublic=False
for recipient in toRecipients:
if recipient.endswith('#Public'):
isPublic=True
break
if isPublic:
updateHashtagsIndex(baseDir,tag,newPostId)
if not clientToServer: