mirror of https://gitlab.com/bashrc2/epicyon
Extra outbox search phrases
parent
8a623417bf
commit
de8dc91341
23
daemon.py
23
daemon.py
|
@ -3193,7 +3193,28 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
return
|
return
|
||||||
elif searchStr.startswith("'"):
|
elif (searchStr.startswith("'") or
|
||||||
|
searchStr.endswith(' history') or
|
||||||
|
searchStr.endswith(' in sent') or
|
||||||
|
searchStr.endswith(' in outbox') or
|
||||||
|
searchStr.endswith(' in my outbox') or
|
||||||
|
searchStr.endswith(' in sent items') or
|
||||||
|
searchStr.endswith(' in sent posts') or
|
||||||
|
searchStr.endswith(' in my posts')):
|
||||||
|
possibleEndings = (
|
||||||
|
' in my posts',
|
||||||
|
' in sent posts',
|
||||||
|
' in my history',
|
||||||
|
' in history',
|
||||||
|
' in sent',
|
||||||
|
' in outbox',
|
||||||
|
' in my outbox',
|
||||||
|
' in sent items',
|
||||||
|
' history'
|
||||||
|
)
|
||||||
|
for possEnding in possibleEndings:
|
||||||
|
if searchStr.endswith(possEnding):
|
||||||
|
searchStr = searchStr.replace(possEnding, '')
|
||||||
# your post history search
|
# your post history search
|
||||||
nickname = getNicknameFromActor(actorStr)
|
nickname = getNicknameFromActor(actorStr)
|
||||||
searchStr = searchStr.replace("'", '', 1).strip()
|
searchStr = searchStr.replace("'", '', 1).strip()
|
||||||
|
|
Loading…
Reference in New Issue