mirror of https://gitlab.com/bashrc2/epicyon
Show quote posts option on edit profile screen
parent
c9dde86e52
commit
ff9719d827
|
@ -930,6 +930,32 @@ def _profile_post_only_follower_replies(fields: {},
|
|||
show_replies_followers_file)
|
||||
|
||||
|
||||
def _profile_post_show_quote_toots(fields: {}, account_dir: str) -> None:
|
||||
""" HTTP POST show quote toots checkbox on edit profile
|
||||
"""
|
||||
show_quote_toots = False
|
||||
if fields.get('showQuotes'):
|
||||
if fields['showQuotes'] == 'on':
|
||||
show_quote_toots = True
|
||||
show_quote_toots_file = account_dir + '/.allowQuotes'
|
||||
if os.path.isfile(show_quote_toots_file):
|
||||
if show_quote_toots:
|
||||
try:
|
||||
os.remove(show_quote_toots_file)
|
||||
except OSError:
|
||||
print('EX: unable to remove allowQuotes file ' +
|
||||
show_quote_toots_file)
|
||||
else:
|
||||
if not show_quote_toots:
|
||||
try:
|
||||
with open(show_quote_toots_file, 'w+',
|
||||
encoding='utf-8') as fp_quotes:
|
||||
fp_quotes.write('\n')
|
||||
except OSError:
|
||||
print('EX: unable to write allowQuotes file ' +
|
||||
show_quote_toots_file)
|
||||
|
||||
|
||||
def _profile_post_show_questions(fields: {}, account_dir: str) -> None:
|
||||
""" HTTP POST show poll/vote/question posts checkbox
|
||||
"""
|
||||
|
@ -2940,6 +2966,8 @@ def profile_edit(self, calling_domain: str, cookie: str,
|
|||
|
||||
account_dir = acct_dir(base_dir, nickname, domain)
|
||||
|
||||
_profile_post_show_quote_toots(fields, account_dir)
|
||||
|
||||
_profile_post_show_questions(fields, account_dir)
|
||||
|
||||
_profile_post_only_follower_replies(fields, account_dir)
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "الموافقة على المشجعين",
|
||||
"Only allow replies from fans": "السماح فقط بالردود من المعجبين",
|
||||
"Do not show fans on your profile": "لا تظهر المعجبين في ملفك الشخصي",
|
||||
"Don't show boosted replies": "عدم إظهار الردود المعززة"
|
||||
"Don't show boosted replies": "عدم إظهار الردود المعززة",
|
||||
"Show quote posts": "إظهار المشاركات المقتبسة"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "ভক্তদের অনুমোদন করুন",
|
||||
"Only allow replies from fans": "শুধুমাত্র অনুরাগীদের কাছ থেকে উত্তরের অনুমতি দিন",
|
||||
"Do not show fans on your profile": "আপনার প্রোফাইলে ভক্ত দেখাবেন না",
|
||||
"Don't show boosted replies": "বুস্ট করা উত্তর দেখাবেন না"
|
||||
"Don't show boosted replies": "বুস্ট করা উত্তর দেখাবেন না",
|
||||
"Show quote posts": "উদ্ধৃত পোস্ট দেখান"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Aprovar els aficionats",
|
||||
"Only allow replies from fans": "Només permet respostes dels fans",
|
||||
"Do not show fans on your profile": "No mostris els fans al teu perfil",
|
||||
"Don't show boosted replies": "No mostris respostes reforçades"
|
||||
"Don't show boosted replies": "No mostris respostes reforçades",
|
||||
"Show quote posts": "Mostra les publicacions citades"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Cymeradwyo cefnogwyr",
|
||||
"Only allow replies from fans": "Caniatewch atebion gan gefnogwyr yn unig",
|
||||
"Do not show fans on your profile": "Peidiwch â dangos cefnogwyr ar eich proffil",
|
||||
"Don't show boosted replies": "Peidiwch â dangos atebion cryfach"
|
||||
"Don't show boosted replies": "Peidiwch â dangos atebion cryfach",
|
||||
"Show quote posts": "Dangos postiadau a ddyfynnwyd"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Fans genehmigen",
|
||||
"Only allow replies from fans": "Erlaube nur Antworten von Fans",
|
||||
"Do not show fans on your profile": "Zeigen Sie keine Fans in Ihrem Profil an",
|
||||
"Don't show boosted replies": "Keine geboosteten Antworten anzeigen"
|
||||
"Don't show boosted replies": "Keine geboosteten Antworten anzeigen",
|
||||
"Show quote posts": "Zitierte Beiträge anzeigen"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Έγκριση οπαδών",
|
||||
"Only allow replies from fans": "Επιτρέπονται μόνο απαντήσεις από θαυμαστές",
|
||||
"Do not show fans on your profile": "Μην εμφανίζετε θαυμαστές στο προφίλ σας",
|
||||
"Don't show boosted replies": "Μην εμφανίζετε ενισχυμένες απαντήσεις"
|
||||
"Don't show boosted replies": "Μην εμφανίζετε ενισχυμένες απαντήσεις",
|
||||
"Show quote posts": "Εμφάνιση αναφερόμενων αναρτήσεων"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Approve fans",
|
||||
"Only allow replies from fans": "Only allow replies from fans",
|
||||
"Do not show fans on your profile": "Don't show fans on your profile",
|
||||
"Don't show boosted replies": "Don't show boosted replies"
|
||||
"Don't show boosted replies": "Don't show boosted replies",
|
||||
"Show quote posts": "Show quote posts"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Aprobar las fans",
|
||||
"Only allow replies from fans": "Solo permitir respuestas de las fans",
|
||||
"Do not show fans on your profile": "No mostrar fans en tu perfil",
|
||||
"Don't show boosted replies": "No mostrar respuestas mejoradas"
|
||||
"Don't show boosted replies": "No mostrar respuestas mejoradas",
|
||||
"Show quote posts": "Mostrar publicaciones citadas"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "طرفداران را تایید کنید",
|
||||
"Only allow replies from fans": "فقط اجازه پاسخ از طرفداران را بدهید",
|
||||
"Do not show fans on your profile": "طرفداران را در نمایه خود نشان ندهید",
|
||||
"Don't show boosted replies": "پاسخ های تقویت شده را نشان ندهید"
|
||||
"Don't show boosted replies": "پاسخ های تقویت شده را نشان ندهید",
|
||||
"Show quote posts": "نمایش پست های نقل شده"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Approuver les fans",
|
||||
"Only allow replies from fans": "Autoriser uniquement les réponses des fans",
|
||||
"Do not show fans on your profile": "Ne pas afficher les fans sur votre profil",
|
||||
"Don't show boosted replies": "Ne pas afficher les réponses boostées"
|
||||
"Don't show boosted replies": "Ne pas afficher les réponses boostées",
|
||||
"Show quote posts": "Afficher les articles cités"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Lucht leanúna a cheadú",
|
||||
"Only allow replies from fans": "Ná ceadaigh ach freagraí ón lucht leanúna",
|
||||
"Do not show fans on your profile": "Ná taispeáin lucht leanúna ar do phróifíl",
|
||||
"Don't show boosted replies": "Ná taispeáin freagraí treisithe"
|
||||
"Don't show boosted replies": "Ná taispeáin freagraí treisithe",
|
||||
"Show quote posts": "Taispeáin postálacha luaite"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "לאשר מעריצים",
|
||||
"Only allow replies from fans": "אפשר רק תשובות ממעריצים",
|
||||
"Do not show fans on your profile": "אל תראה מעריצים בפרופיל שלך",
|
||||
"Don't show boosted replies": "אל תראה תשובות מוגברות"
|
||||
"Don't show boosted replies": "אל תראה תשובות מוגברות",
|
||||
"Show quote posts": "הצג פוסטים מצוטטים"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "प्रशंसकों का अनुमोदन करें",
|
||||
"Only allow replies from fans": "केवल प्रशंसकों के उत्तरों की अनुमति दें",
|
||||
"Do not show fans on your profile": "अपनी प्रोफ़ाइल पर प्रशंसकों को न दिखाएं",
|
||||
"Don't show boosted replies": "बढ़ाए गए उत्तर न दिखाएं"
|
||||
"Don't show boosted replies": "बढ़ाए गए उत्तर न दिखाएं",
|
||||
"Show quote posts": "उद्धृत पोस्ट दिखाएँ"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Approva i fan",
|
||||
"Only allow replies from fans": "Consenti solo risposte da parte dei fan",
|
||||
"Do not show fans on your profile": "Non mostrare i fan sul tuo profilo",
|
||||
"Don't show boosted replies": "Non mostrare le risposte in evidenza"
|
||||
"Don't show boosted replies": "Non mostrare le risposte in evidenza",
|
||||
"Show quote posts": "Mostra post citati"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "ファンを承認する",
|
||||
"Only allow replies from fans": "ファンからの返信のみを許可する",
|
||||
"Do not show fans on your profile": "プロフィールにファンを表示しない",
|
||||
"Don't show boosted replies": "ブーストされた返信を表示しない"
|
||||
"Don't show boosted replies": "ブーストされた返信を表示しない",
|
||||
"Show quote posts": "引用された投稿を表示"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "팬 승인",
|
||||
"Only allow replies from fans": "팬의 답글만 허용",
|
||||
"Do not show fans on your profile": "프로필에 팬을 표시하지 마세요.",
|
||||
"Don't show boosted replies": "홍보된 답글 표시 안함"
|
||||
"Don't show boosted replies": "홍보된 답글 표시 안함",
|
||||
"Show quote posts": "인용된 게시물 표시"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Fans pejirandî",
|
||||
"Only allow replies from fans": "Tenê destûr bidin bersivên temaşevanan",
|
||||
"Do not show fans on your profile": "Li ser profîla xwe temaşevanan nîşan nedin",
|
||||
"Don't show boosted replies": "Bersivên zêdekirî nîşan nedin"
|
||||
"Don't show boosted replies": "Bersivên zêdekirî nîşan nedin",
|
||||
"Show quote posts": "Mesajên binavkirî nîşan bide"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Fans goedkeuren",
|
||||
"Only allow replies from fans": "Sta alleen antwoorden van fans toe",
|
||||
"Do not show fans on your profile": "Toon geen fans op je profiel",
|
||||
"Don't show boosted replies": "Geen gepromote antwoorden weergeven"
|
||||
"Don't show boosted replies": "Geen gepromote antwoorden weergeven",
|
||||
"Show quote posts": "Toon geciteerde berichten"
|
||||
}
|
||||
|
|
|
@ -663,5 +663,6 @@
|
|||
"Approve fans": "Approve fans",
|
||||
"Only allow replies from fans": "Only allow replies from fans",
|
||||
"Do not show fans on your profile": "Do not show fans on your profile",
|
||||
"Don't show boosted replies": "Don't show boosted replies"
|
||||
"Don't show boosted replies": "Don't show boosted replies",
|
||||
"Show quote posts": "Show quote posts"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Zatwierdź fanów",
|
||||
"Only allow replies from fans": "Zezwalaj tylko na odpowiedzi od fanów",
|
||||
"Do not show fans on your profile": "Nie pokazuj fanów na swoim profilu",
|
||||
"Don't show boosted replies": "Nie pokazuj wzmocnionych odpowiedzi"
|
||||
"Don't show boosted replies": "Nie pokazuj wzmocnionych odpowiedzi",
|
||||
"Show quote posts": "Pokaż cytowane posty"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Aprovar fãs",
|
||||
"Only allow replies from fans": "Permitir apenas respostas de fãs",
|
||||
"Do not show fans on your profile": "Não mostre fãs em seu perfil",
|
||||
"Don't show boosted replies": "Não mostrar respostas otimizadas"
|
||||
"Don't show boosted replies": "Não mostrar respostas otimizadas",
|
||||
"Show quote posts": "Mostrar postagens citadas"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Одобрить поклонников",
|
||||
"Only allow replies from fans": "Разрешить ответы только от фанатов",
|
||||
"Do not show fans on your profile": "Не показывать поклонников в своем профиле",
|
||||
"Don't show boosted replies": "Не показывать усиленные ответы"
|
||||
"Don't show boosted replies": "Не показывать усиленные ответы",
|
||||
"Show quote posts": "Показать цитируемые сообщения"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Idhinisha mashabiki",
|
||||
"Only allow replies from fans": "Ruhusu majibu kutoka kwa mashabiki pekee",
|
||||
"Do not show fans on your profile": "Usionyeshe mashabiki kwenye wasifu wako",
|
||||
"Don't show boosted replies": "Usionyeshe majibu yaliyoboreshwa"
|
||||
"Don't show boosted replies": "Usionyeshe majibu yaliyoboreshwa",
|
||||
"Show quote posts": "Onyesha machapisho yaliyonukuliwa"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Hayranları onayla",
|
||||
"Only allow replies from fans": "Yalnızca hayranlardan gelen yanıtlara izin ver",
|
||||
"Do not show fans on your profile": "Hayranlarınızı profilinizde gösterme",
|
||||
"Don't show boosted replies": "Öne çıkarılan yanıtları gösterme"
|
||||
"Don't show boosted replies": "Öne çıkarılan yanıtları gösterme",
|
||||
"Show quote posts": "Alıntılanan gönderileri göster"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "Схвалити шанувальників",
|
||||
"Only allow replies from fans": "Дозволити лише відповіді від шанувальників",
|
||||
"Do not show fans on your profile": "Не показуйте шанувальників у своєму профілі",
|
||||
"Don't show boosted replies": "Не показувати посилені відповіді"
|
||||
"Don't show boosted replies": "Не показувати посилені відповіді",
|
||||
"Show quote posts": "Показувати цитовані пости"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "אַפּרווו פאַנס",
|
||||
"Only allow replies from fans": "נאָר לאָזן ענטפֿערס פון פאַנס",
|
||||
"Do not show fans on your profile": "צי ניט ווייַזן פאַנס אויף דיין פּראָפיל",
|
||||
"Don't show boosted replies": "צי ניט ווייַזן בוסטיד ענטפֿערס"
|
||||
"Don't show boosted replies": "צי ניט ווייַזן בוסטיד ענטפֿערס",
|
||||
"Show quote posts": "ווייַזן ציטירטע אַרטיקלען"
|
||||
}
|
||||
|
|
|
@ -667,5 +667,6 @@
|
|||
"Approve fans": "批准粉丝",
|
||||
"Only allow replies from fans": "只允许粉丝回复",
|
||||
"Do not show fans on your profile": "不要在您的个人资料上显示粉丝",
|
||||
"Don't show boosted replies": "不显示强化回复"
|
||||
"Don't show boosted replies": "不显示强化回复",
|
||||
"Show quote posts": "显示引用的帖子"
|
||||
}
|
||||
|
|
|
@ -2720,6 +2720,7 @@ def _html_edit_profile_options(is_admin: bool,
|
|||
nickname: str,
|
||||
min_images_for_accounts: [],
|
||||
reverse_sequence: [],
|
||||
show_quote_toots: bool,
|
||||
show_vote_posts: bool,
|
||||
show_replies_followers: bool,
|
||||
show_replies_mutuals: bool,
|
||||
|
@ -2785,6 +2786,10 @@ def _html_edit_profile_options(is_admin: bool,
|
|||
edit_profile_form += \
|
||||
edit_check_box(reverse_str, 'reverseTimelines', reverse)
|
||||
|
||||
show_quote_toots_str = translate['Show quote posts']
|
||||
edit_profile_form += \
|
||||
edit_check_box(show_quote_toots_str, 'showQuotes', show_quote_toots)
|
||||
|
||||
show_vote_posts_str = translate['Show vote posts']
|
||||
edit_profile_form += \
|
||||
edit_check_box(show_vote_posts_str, 'showVotes', show_vote_posts)
|
||||
|
@ -3198,6 +3203,11 @@ def html_edit_profile(server, translate: {},
|
|||
nickname, domain, max_recent_posts,
|
||||
featured_hashtags)
|
||||
|
||||
# whether to show quote toots
|
||||
show_quote_toots = False
|
||||
if os.path.isfile(account_dir + '/.allowQuotes'):
|
||||
show_quote_toots = True
|
||||
|
||||
# whether to show votes
|
||||
show_vote_posts = True
|
||||
if os.path.isfile(account_dir + '/.noVotes'):
|
||||
|
@ -3237,8 +3247,8 @@ def html_edit_profile(server, translate: {},
|
|||
hide_like_button, hide_reaction_button,
|
||||
translate, bold_reading,
|
||||
nickname, min_images_for_accounts,
|
||||
reverse_sequence, show_vote_posts,
|
||||
show_replies_followers,
|
||||
reverse_sequence, show_quote_toots,
|
||||
show_vote_posts, show_replies_followers,
|
||||
show_replies_mutuals, hide_follows,
|
||||
premium, no_reply_boosts)
|
||||
|
||||
|
|
Loading…
Reference in New Issue