forked from indymedia/epicyon
Only public posts with hashtags are indexed
parent
2941b9df33
commit
4dccb042b0
8
posts.py
8
posts.py
|
@ -435,7 +435,13 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
|
||||||
if hashtagsDict:
|
if hashtagsDict:
|
||||||
for tagName,tag in hashtagsDict.items():
|
for tagName,tag in hashtagsDict.items():
|
||||||
tags.append(tag)
|
tags.append(tag)
|
||||||
updateHashtagsIndex(baseDir,tag,newPostId)
|
isPublic=False
|
||||||
|
for recipient in toRecipients:
|
||||||
|
if recipient.endswith('#Public'):
|
||||||
|
isPublic=True
|
||||||
|
break
|
||||||
|
if isPublic:
|
||||||
|
updateHashtagsIndex(baseDir,tag,newPostId)
|
||||||
|
|
||||||
if not clientToServer:
|
if not clientToServer:
|
||||||
actorUrl=httpPrefix+'://'+domain+'/users/'+nickname
|
actorUrl=httpPrefix+'://'+domain+'/users/'+nickname
|
||||||
|
|
Loading…
Reference in New Issue