diff --git a/translations/ar.json b/translations/ar.json index 655160ce1..edd5e5b08 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -640,5 +640,6 @@ "places": "أماكن", "offline": "غير متصل على الانترنت", "Mutuals": "التعاضد", - "Public replies default to unlisted scope": "الردود العامة افتراضية للنطاق غير المدرج" + "Public replies default to unlisted scope": "الردود العامة افتراضية للنطاق غير المدرج", + "About the author": "عن المؤلف" } diff --git a/translations/bn.json b/translations/bn.json index fb758ea6d..5031f0bf9 100644 --- a/translations/bn.json +++ b/translations/bn.json @@ -640,5 +640,6 @@ "places": "জায়গা", "offline": "অফলাইন", "Mutuals": "পারস্পরিক", - "Public replies default to unlisted scope": "অতালিকাভুক্ত সুযোগে সর্বজনীন উত্তর ডিফল্ট" + "Public replies default to unlisted scope": "অতালিকাভুক্ত সুযোগে সর্বজনীন উত্তর ডিফল্ট", + "About the author": "লেখক সম্পর্কে" } diff --git a/translations/ca.json b/translations/ca.json index 4b89841d8..ddacbc135 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -640,5 +640,6 @@ "places": "llocs", "offline": "fora de línia", "Mutuals": "Mútues", - "Public replies default to unlisted scope": "Les respostes públiques són per defecte a l'abast no llistat" + "Public replies default to unlisted scope": "Les respostes públiques són per defecte a l'abast no llistat", + "About the author": "Sobre l’autor" } diff --git a/translations/cy.json b/translations/cy.json index 4d1a2ac07..74ef04f2f 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -640,5 +640,6 @@ "places": "lleoedd", "offline": "all-lein", "Mutuals": "Cydfuddiol", - "Public replies default to unlisted scope": "Ymatebion cyhoeddus rhagosodedig i gwmpas heb ei restru" + "Public replies default to unlisted scope": "Ymatebion cyhoeddus rhagosodedig i gwmpas heb ei restru", + "About the author": "Am yr awdur" } diff --git a/translations/de.json b/translations/de.json index 3f86e08f0..b9f16111c 100644 --- a/translations/de.json +++ b/translations/de.json @@ -640,5 +640,6 @@ "places": "setzt", "offline": "offline", "Mutuals": "Gegenseitigkeitsgesellschaften", - "Public replies default to unlisted scope": "Öffentliche Antworten werden standardmäßig auf den nicht aufgeführten Bereich übertragen" + "Public replies default to unlisted scope": "Öffentliche Antworten werden standardmäßig auf den nicht aufgeführten Bereich übertragen", + "About the author": "Über den Autor" } diff --git a/translations/el.json b/translations/el.json index dcea1bbc2..a504f8c7e 100644 --- a/translations/el.json +++ b/translations/el.json @@ -640,5 +640,6 @@ "places": "μέρη", "offline": "εκτός σύνδεσης", "Mutuals": "Αμοιβαία", - "Public replies default to unlisted scope": "Οι δημόσιες απαντήσεις από προεπιλογή στο μη καταχωρισμένο εύρος" + "Public replies default to unlisted scope": "Οι δημόσιες απαντήσεις από προεπιλογή στο μη καταχωρισμένο εύρος", + "About the author": "Σχετικά με τον Συγγραφέα" } diff --git a/translations/en.json b/translations/en.json index 6892c1a66..fd1a1f9b6 100644 --- a/translations/en.json +++ b/translations/en.json @@ -640,5 +640,6 @@ "places": "places", "offline": "offline", "Mutuals": "Mutuals", - "Public replies default to unlisted scope": "Public replies default to unlisted scope" + "Public replies default to unlisted scope": "Public replies default to unlisted scope", + "About the author": "About the author" } diff --git a/translations/es.json b/translations/es.json index 5ae73e308..0f22f40e9 100644 --- a/translations/es.json +++ b/translations/es.json @@ -640,5 +640,6 @@ "places": "lugares", "offline": "desconectada", "Mutuals": "Mutuales", - "Public replies default to unlisted scope": "Las respuestas públicas tienen por defecto un alcance no listado" + "Public replies default to unlisted scope": "Las respuestas públicas tienen por defecto un alcance no listado", + "About the author": "Sobre el Autor" } diff --git a/translations/fa.json b/translations/fa.json index fcd1a5397..3623c9e21 100644 --- a/translations/fa.json +++ b/translations/fa.json @@ -640,5 +640,6 @@ "places": "مکان ها", "offline": "آفلاین", "Mutuals": "متقابل", - "Public replies default to unlisted scope": "پاسخهای عمومی بهطور پیشفرض به محدوده فهرست نشده است" + "Public replies default to unlisted scope": "پاسخهای عمومی بهطور پیشفرض به محدوده فهرست نشده است", + "About the author": "درباره نویسنده" } diff --git a/translations/fr.json b/translations/fr.json index 09372615a..4deb69be8 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -640,5 +640,6 @@ "places": "lieux", "offline": "hors ligne", "Mutuals": "Mutuelles", - "Public replies default to unlisted scope": "Les réponses publiques ont par défaut une portée non répertoriée" + "Public replies default to unlisted scope": "Les réponses publiques ont par défaut une portée non répertoriée", + "About the author": "A propos de l'auteur" } diff --git a/translations/ga.json b/translations/ga.json index cd7ccf40f..f55c61b64 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -640,5 +640,6 @@ "places": "áiteanna", "offline": "as líne", "Mutuals": "Comhpháirteacha", - "Public replies default to unlisted scope": "Freagraí poiblí réamhshocraithe ar scóip neamhliostaithe" + "Public replies default to unlisted scope": "Freagraí poiblí réamhshocraithe ar scóip neamhliostaithe", + "About the author": "Faoin tÚdar" } diff --git a/translations/he.json b/translations/he.json index 74a168d3c..fe933625d 100644 --- a/translations/he.json +++ b/translations/he.json @@ -640,5 +640,6 @@ "places": "מקומות", "offline": "במצב לא מקוון", "Mutuals": "הדדיות", - "Public replies default to unlisted scope": "תשובות ציבוריות כברירת מחדל להיקף לא רשום" + "Public replies default to unlisted scope": "תשובות ציבוריות כברירת מחדל להיקף לא רשום", + "About the author": "על הסופר" } diff --git a/translations/hi.json b/translations/hi.json index 11d8105d8..ac830458f 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -640,5 +640,6 @@ "places": "स्थानों", "offline": "ऑफलाइन", "Mutuals": "पारस्परिक", - "Public replies default to unlisted scope": "सार्वजनिक उत्तर डिफ़ॉल्ट रूप से असूचीबद्ध दायरे में आते हैं" + "Public replies default to unlisted scope": "सार्वजनिक उत्तर डिफ़ॉल्ट रूप से असूचीबद्ध दायरे में आते हैं", + "About the author": "लेखक के बारे में" } diff --git a/translations/it.json b/translations/it.json index 5019baf47..7947c7dab 100644 --- a/translations/it.json +++ b/translations/it.json @@ -640,5 +640,6 @@ "places": "luoghi", "offline": "disconnessa", "Mutuals": "Mutui", - "Public replies default to unlisted scope": "Per impostazione predefinita, le risposte pubbliche hanno un ambito non elencato" + "Public replies default to unlisted scope": "Per impostazione predefinita, le risposte pubbliche hanno un ambito non elencato", + "About the author": "Circa l'autore" } diff --git a/translations/ja.json b/translations/ja.json index 00c801b31..217f9a9c4 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -640,5 +640,6 @@ "places": "場所", "offline": "オフライン", "Mutuals": "相互作用", - "Public replies default to unlisted scope": "パブリック返信はデフォルトで非公開スコープになります" + "Public replies default to unlisted scope": "パブリック返信はデフォルトで非公開スコープになります", + "About the author": "著者について" } diff --git a/translations/ko.json b/translations/ko.json index 550987b15..652827be0 100644 --- a/translations/ko.json +++ b/translations/ko.json @@ -640,5 +640,6 @@ "places": "장소", "offline": "오프라인", "Mutuals": "상호", - "Public replies default to unlisted scope": "공개 답글은 기본적으로 비공개 범위로 설정됩니다." + "Public replies default to unlisted scope": "공개 답글은 기본적으로 비공개 범위로 설정됩니다.", + "About the author": "저자에 대해" } diff --git a/translations/ku.json b/translations/ku.json index 322e32c19..10464537c 100644 --- a/translations/ku.json +++ b/translations/ku.json @@ -640,5 +640,6 @@ "places": "cihên", "offline": "offline", "Mutuals": "Mutuals", - "Public replies default to unlisted scope": "Bersivên gelemperî ji bo çarçoveyek nelîstekirî xwerû dide" + "Public replies default to unlisted scope": "Bersivên gelemperî ji bo çarçoveyek nelîstekirî xwerû dide", + "About the author": "Di derbarê nivîskarê de" } diff --git a/translations/nl.json b/translations/nl.json index 9021c5a4c..a68907cd6 100644 --- a/translations/nl.json +++ b/translations/nl.json @@ -640,5 +640,6 @@ "places": "plaatsen", "offline": "offline", "Mutuals": "Mutualiteiten", - "Public replies default to unlisted scope": "Openbare antwoorden hebben standaard een niet-vermeld bereik" + "Public replies default to unlisted scope": "Openbare antwoorden hebben standaard een niet-vermeld bereik", + "About the author": "Over de auteur" } diff --git a/translations/oc.json b/translations/oc.json index 53f2ba28b..b8e6f0501 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -636,5 +636,6 @@ "places": "places", "offline": "offline", "Mutuals": "Mutuals", - "Public replies default to unlisted scope": "Public replies default to unlisted scope" + "Public replies default to unlisted scope": "Public replies default to unlisted scope", + "About the author": "About the author" } diff --git a/translations/pl.json b/translations/pl.json index d39ac6d92..8838d64da 100644 --- a/translations/pl.json +++ b/translations/pl.json @@ -640,5 +640,6 @@ "places": "miejsca", "offline": "nieaktywny", "Mutuals": "Wzajemne relacje", - "Public replies default to unlisted scope": "Odpowiedzi publiczne domyślnie mają zakres niepubliczny" + "Public replies default to unlisted scope": "Odpowiedzi publiczne domyślnie mają zakres niepubliczny", + "About the author": "O autorze" } diff --git a/translations/pt.json b/translations/pt.json index 230256935..82216d9c4 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -640,5 +640,6 @@ "places": "lugares", "offline": "desligada", "Mutuals": "Mútuas", - "Public replies default to unlisted scope": "As respostas públicas são padronizadas para escopo não listado" + "Public replies default to unlisted scope": "As respostas públicas são padronizadas para escopo não listado", + "About the author": "Sobre o autor" } diff --git a/translations/ru.json b/translations/ru.json index 3192b5763..20b44102e 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -640,5 +640,6 @@ "places": "места", "offline": "не в сети", "Mutuals": "Взаимные отношения", - "Public replies default to unlisted scope": "Публичные ответы по умолчанию имеют скрытую область действия." + "Public replies default to unlisted scope": "Публичные ответы по умолчанию имеют скрытую область действия.", + "About the author": "Об авторе" } diff --git a/translations/sw.json b/translations/sw.json index 1bbffde41..50e7a97c7 100644 --- a/translations/sw.json +++ b/translations/sw.json @@ -640,5 +640,6 @@ "places": "maeneo", "offline": "nje ya mtandao", "Mutuals": "Kuheshimiana", - "Public replies default to unlisted scope": "Majibu ya umma kwa chaguomsingi kwa upeo ambao haujaorodheshwa" + "Public replies default to unlisted scope": "Majibu ya umma kwa chaguomsingi kwa upeo ambao haujaorodheshwa", + "About the author": "Kuhusu mwandishi" } diff --git a/translations/tr.json b/translations/tr.json index 9baa1009f..8c533a4d9 100644 --- a/translations/tr.json +++ b/translations/tr.json @@ -640,5 +640,6 @@ "places": "yer", "offline": "çevrimdışı", "Mutuals": "Karşılıklar", - "Public replies default to unlisted scope": "Genel yanıtlar varsayılan olarak liste dışı kapsama alınır" + "Public replies default to unlisted scope": "Genel yanıtlar varsayılan olarak liste dışı kapsama alınır", + "About the author": "Yazar hakkında" } diff --git a/translations/uk.json b/translations/uk.json index f43c3f18d..333dc190f 100644 --- a/translations/uk.json +++ b/translations/uk.json @@ -640,5 +640,6 @@ "places": "місць", "offline": "офлайн", "Mutuals": "Мутуали", - "Public replies default to unlisted scope": "Загальнодоступні відповіді за умовчанням мають приватний обсяг" + "Public replies default to unlisted scope": "Загальнодоступні відповіді за умовчанням мають приватний обсяг", + "About the author": "Про автора" } diff --git a/translations/yi.json b/translations/yi.json index 942a67bba..a4bd037c0 100644 --- a/translations/yi.json +++ b/translations/yi.json @@ -640,5 +640,6 @@ "places": "ערטער", "offline": "אָפפלינע", "Mutuals": "קעגנצייַטיק", - "Public replies default to unlisted scope": "ציבור ענטפֿערס פעליקייַט צו אַנליסטעד פאַרנעם" + "Public replies default to unlisted scope": "ציבור ענטפֿערס פעליקייַט צו אַנליסטעד פאַרנעם", + "About the author": "וועגן דעם מחבר" } diff --git a/translations/zh.json b/translations/zh.json index ee427b1a5..e7b1f0656 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -640,5 +640,6 @@ "places": "地方", "offline": "离线", "Mutuals": "互助基金", - "Public replies default to unlisted scope": "公开回复默认为不公开范围" + "Public replies default to unlisted scope": "公开回复默认为不公开范围", + "About the author": "关于作者" } diff --git a/webapp_create_post.py b/webapp_create_post.py index 733792a8b..df4f646a8 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -8,6 +8,7 @@ __status__ = "Production" __module_group__ = "Web Interface" import os +from utils import dangerous_markup from utils import remove_html from utils import get_content_from_post from utils import has_object_dict @@ -25,6 +26,7 @@ from utils import get_category_types from utils import get_account_timezone from utils import get_supported_languages from utils import text_in_file +from utils import get_attributed_to from webapp_utils import edit_check_box from webapp_utils import get_buy_links from webapp_utils import html_following_data_list @@ -41,6 +43,7 @@ from webapp_post import individual_post_as_html from maps import get_map_preferences_url from maps import get_map_preferences_coords from maps import get_location_from_post +from cache import get_person_from_cache def _html_new_post_drop_down(scope_icon: str, scope_description: str, @@ -435,6 +438,38 @@ def html_new_post(edit_post_params: {}, bold_reading, dogwhistles, minimize_all_images, None, buy_sites) + # about the author + if has_object_dict(post_json_object): + if post_json_object['object'].get('attributedTo'): + attrib_field = \ + post_json_object['object']['attributedTo'] + attrib_url = get_attributed_to(attrib_field) + if attrib_url: + reply_to_actor = \ + get_person_from_cache(base_dir, + attrib_url, + person_cache) + if reply_to_actor: + summary = \ + reply_to_actor['summary'] + if summary: + if not dangerous_markup(summary, + False, []): + reply_to_description = \ + summary + else: + reply_to_description = \ + remove_html(summary) + about_author_str = \ + translate['About the author'] + new_post_text += \ + '