Change history search prefix so that it can be used for groups

merge-requests/20/merge
Bob Mottram 2021-07-29 10:41:44 +01:00
parent 725ca29f5a
commit 9f58bb4b6f
19 changed files with 21 additions and 21 deletions

View File

@ -2944,10 +2944,10 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
self.server.POSTbusy = False
return
elif searchStr.startswith('!'):
elif searchStr.startswith("'"):
# your post history search
nickname = getNicknameFromActor(actorStr)
searchStr = searchStr.replace('!', '', 1).strip()
searchStr = searchStr.replace("'", '', 1).strip()
historyStr = \
htmlHistorySearch(self.server.cssCache,
self.server.translate,

View File

@ -90,7 +90,7 @@
"View": "رأي",
"Stop blocking": "وقف الحظر",
"Enter an emoji name to search for": "أدخل اسم رمز تعبيري للبحث عنه",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "أدخل عنوانًا أو عنصرًا مشتركًا أو! history أو #hashtag أو * مهارة أو: emoji: للبحث عنه",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "أدخل عنوانًا أو عنصرًا مشتركًا أو 'history أو #hashtag أو * مهارة أو :emoji: للبحث عنه",
"Go Back": "◀",
"Moderation Information": "معلومات الاعتدال",
"Suspended accounts": "الحسابات المعلقه",

View File

@ -90,7 +90,7 @@
"View": "Veure",
"Stop blocking": "Deixeu de bloquejar",
"Enter an emoji name to search for": "Introduïu un nom emoji per cercar",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Introduïu una adreça, un element compartit, un historial!, #Hashtag, * skill o: emoji: per cercar",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Introduïu una adreça, un element compartit, un 'historial, #Hashtag, *skill o :emoji: per cercar",
"Go Back": "◀",
"Moderation Information": "Informació de moderació",
"Suspended accounts": "Comptes suspesos",

View File

@ -90,7 +90,7 @@
"View": "Gweld",
"Stop blocking": "Stopiwch rwystro",
"Enter an emoji name to search for": "Rhowch enw emoji i chwilio amdano",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Rhowch gyfeiriad, eitem a rennir ,! Hanes, #hashtag, * sgil neu: emoji: i chwilio amdano",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Rhowch gyfeiriad, eitem a rennir , 'Hanes, #hashtag, *sgil neu :emoji: i chwilio amdano",
"Go Back": "◀",
"Moderation Information": "Gwybodaeth Cymedroli",
"Suspended accounts": "Cyfrifon gohiriedig",

View File

@ -90,7 +90,7 @@
"View": "Zeigen",
"Stop blocking": "Sperre aufheben",
"Enter an emoji name to search for": "Geben Sie einen Emojinamen ein, nach dem gesucht werden soll",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Geben Sie eine Adresse, ein freigegebenes Element ,! History, #hashtag, * Skill oder: emoji: ein, nach der gesucht werden soll",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Geben Sie eine Adresse, ein freigegebenes Element , 'History, #hashtag, *Skill oder :emoji: ein, nach der gesucht werden soll",
"Go Back": "◀",
"Moderation Information": "Moderationsinformationen",
"Suspended accounts": "Temporäre gesperrte Benutzer",

View File

@ -90,7 +90,7 @@
"View": "View",
"Stop blocking": "Stop blocking",
"Enter an emoji name to search for": "Enter an emoji name to search for",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Enter an address, shared item, -save, !history, #hashtag, *skill or :emoji: to search for",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Enter an address, shared item, -save, 'history, #hashtag, *skill or :emoji: to search for",
"Go Back": "◀",
"Moderation Information": "Moderation Information",
"Suspended accounts": "Suspended accounts",

View File

@ -90,7 +90,7 @@
"View": "Ver",
"Stop blocking": "Dejar de bloquear",
"Enter an emoji name to search for": "Ingrese un nombre de emoji para buscar",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Ingrese una dirección, elemento compartido,! Historial, #hashtag, * skill o: emoji: para buscar",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Ingrese una dirección, elemento compartido, 'Historial, #hashtag, *skill o :emoji: para buscar",
"Go Back": "◀",
"Moderation Information": "Información de moderación",
"Suspended accounts": "Cuentas suspendidas",

View File

@ -90,7 +90,7 @@
"View": "Vue",
"Stop blocking": "Arrêtez le blocage",
"Enter an emoji name to search for": "Entrez un nom emoji à rechercher",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Entrez une adresse, un élément partagé,! History, #hashtag, * skill ou: emoji: pour rechercher",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Entrez une adresse, un élément partagé, 'History, #hashtag, *skill ou :emoji: pour rechercher",
"Go Back": "◀",
"Moderation Information": "Informations de modération",
"Suspended accounts": "Comptes suspendus",

View File

@ -90,7 +90,7 @@
"View": "Amharc",
"Stop blocking": "Stop blocáil",
"Enter an emoji name to search for": "Cuir isteach ainm emoji chun cuardach a dhéanamh",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Iontráil seoladh, mír roinnte ,! Stair, #hashtag, * scil nó: emoji: chun cuardach a dhéanamh",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Iontráil seoladh, mír roinnte , 'Stair, #hashtag, *scil nó :emoji: chun cuardach a dhéanamh",
"Go Back": "◀",
"Moderation Information": "Faisnéis Modhnóireachta",
"Suspended accounts": "Cuntais ar fionraí",

View File

@ -90,7 +90,7 @@
"View": "राय",
"Stop blocking": "रोकना बंद करो",
"Enter an emoji name to search for": "खोजने के लिए एक इमोजी नाम दर्ज करें",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "एक पता, साझा किया गया आइटम दर्ज करें; इतिहास, # अंश, * कौशल या: इमोजी: खोजने के लिए",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "एक पता, साझा किया गया आइटम दर्ज करें 'इतिहास, #अंश, *कौशल या :इमोजी: खोजने के लिए",
"Go Back": "◀",
"Moderation Information": "मॉडरेशन जानकारी",
"Suspended accounts": "निलंबित खाते",

View File

@ -90,7 +90,7 @@
"View": "Vista",
"Stop blocking": "Smetti di bloccare",
"Enter an emoji name to search for": "Inserisci un nome emoji da cercare",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Inserisci un indirizzo, un oggetto condiviso,! Storia, #hashtag, * abilità o: emoji: per cercare",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Inserisci un indirizzo, un oggetto condiviso, 'Storia, #hashtag, *abilità o :emoji: per cercare",
"Go Back": "◀",
"Moderation Information": "Informazioni sulla moderazione",
"Suspended accounts": "Conti sospesi",

View File

@ -90,7 +90,7 @@
"View": "見る",
"Stop blocking": "ブロックを停止",
"Enter an emoji name to search for": "検索する絵文字名を入力してください",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "検索するアドレス、共有アイテム、history、ハッシュタグ、* skillまたはemojiを入力してください",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "検索するアドレス、共有アイテム、'history、ハッシュタグ、*skillまたはemojiを入力してください",
"Go Back": "◀",
"Moderation Information": "モデレーション情報",
"Suspended accounts": "一時停止されたアカウント",

View File

@ -90,7 +90,7 @@
"View": "Dîtinî",
"Stop blocking": "Asteng bikin",
"Enter an emoji name to search for": "Ji bo lêgerînê navek emoji binivîse",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Navnîşanek, hêmanek parvekirî,! Dîrok, #hashtag, * jêhatî an: emoji: lêgerîn",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Navnîşanek, hêmanek parvekirî, 'Dîrok, #hashtag, *jêhatî an :emoji: lêgerîn",
"Go Back": "◀",
"Moderation Information": "Agahdariya Moderatoriyê",
"Suspended accounts": "Hesabên rawestandî",

View File

@ -5,7 +5,7 @@
"These are currently suspended": "Son actualament suspenduts",
"Suspended accounts": "Comptes suspenduts",
"Moderation Information": "Informacions de moderacion",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Picatz una adreça, un element partejat, una #etiqueta, *abilitat o :emoji: a cercar",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Picatz una adreça, un element 'partejat, una #etiqueta, *abilitat o :emoji: a cercar",
"Enter an emoji name to search for": "Picatz lo nom dun emoji per lo cercar",
"Information about current blocks/suspensions": "Informacion suls blocatges/suspensions en cors",
"Remove a suspension for an account nickname": "Levar la suspension dun compte",

View File

@ -90,7 +90,7 @@
"View": "Visão",
"Stop blocking": "Pare de bloquear",
"Enter an emoji name to search for": "Digite um nome emoji para procurar",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Digite um endereço, item compartilhado,! History, #hashtag, * skill ou: emoji: para procurar",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Digite um endereço, item compartilhado, 'History, #hashtag, *skill ou :emoji: para procurar",
"Go Back": "◀",
"Moderation Information": "Informações sobre moderação",
"Suspended accounts": "Contas suspensas",

View File

@ -90,7 +90,7 @@
"View": "Посмотреть",
"Stop blocking": "Прекратить блокировку",
"Enter an emoji name to search for": "Введите имя смайлика для поиска",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Введите адрес, общий элемент,! History, #hashtag, * skill или: emoji: для поиска",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Введите адрес, общий элемент, 'History, #hashtag, *skill или :emoji: для поиска",
"Go Back": "◀",
"Moderation Information": "Модерация Информация",
"Suspended accounts": "Приостановленные аккаунты",

View File

@ -90,7 +90,7 @@
"View": "Tazama",
"Stop blocking": "Acha kuzuia",
"Enter an emoji name to search for": "Ingiza jina la emoji kutafuta",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "Ingiza anwani, bidhaa iliyoshirikiwa, -Save, Historia, #Hashtag, * Ujuzi au: Emoji: Ili kutafuta",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "Ingiza anwani, bidhaa iliyoshirikiwa, -Save, 'Historia, #Hashtag, *Ujuzi au :Emoji: Ili kutafuta",
"Go Back": "◀",
"Moderation Information": "Maelezo ya kiasi",
"Suspended accounts": "Akaunti ya kusimamishwa.",

View File

@ -90,7 +90,7 @@
"View": "视图",
"Stop blocking": "停止封锁",
"Enter an emoji name to search for": "输入表情符号名称以进行搜索",
"Enter an address, shared item, !history, #hashtag, *skill or :emoji: to search for": "输入地址,共享项,历史,##标签,*技能或emoji进行搜索",
"Enter an address, shared item, 'history, #hashtag, *skill or :emoji: to search for": "输入地址,共享项,'历史,##标签,*技能或emoji进行搜索",
"Moderation Information": "审核信息",
"Suspended accounts": "暂停的帐户",
"These are currently suspended": "这些目前已暂停",

View File

@ -397,7 +397,7 @@ def htmlSearch(cssCache: {}, translate: {},
followStr += '<div class="follow">\n'
followStr += ' <div class="followAvatar">\n'
followStr += ' <center>\n'
idx = 'Enter an address, shared item, !history, #hashtag, ' + \
idx = "Enter an address, shared item, 'history, #hashtag, " + \
'*skill or :emoji: to search for'
followStr += \
' <p class="followText">' + translate[idx] + '</p>\n'
@ -570,7 +570,7 @@ def htmlHistorySearch(cssCache: {}, translate: {}, baseDir: str,
systemLanguage: str) -> str:
"""Show a page containing search results for your post history
"""
if historysearch.startswith('!'):
if historysearch.startswith("'"):
historysearch = historysearch[1:].strip()
historysearch = historysearch.lower().strip('\n').strip('\r')