Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove request to follow functionality #50

Merged
merged 1 commit into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions components/account/AccountFollowButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,12 @@ const buttonStyle = computed(() => {
<span nimbus-group-hover="hidden">{{ relationship?.followedBy ? $t('account.mutuals') : $t('account.following') }}</span>
<span hidden nimbus-group-hover="inline">{{ $t('account.unfollow') }}</span>
</template>
<template v-else-if="relationship?.requested">
<span nimbus-group-hover="hidden">{{ $t('account.follow_requested') }}</span>
<span hidden nimbus-group-hover="inline">{{ $t('account.withdraw_follow_request') }}</span>
</template>
<template v-else-if="relationship ? relationship.followedBy : context === 'followedBy'">
<span nimbus-group-hover="hidden">{{ $t('account.follows_you') }}</span>
<span hidden nimbus-group-hover="inline">{{ account.locked ? $t('account.request_follow') : $t('account.follow_back') }}</span>
<span hidden nimbus-group-hover="inline">{{ $t('account.follow_back') }}</span>
</template>
<template v-else>
<span>{{ account.locked ? $t('account.request_follow') : $t('account.follow') }}</span>
<span>{{ $t('account.follow') }}</span>
</template>
</template>
</button>
Expand Down
68 changes: 0 additions & 68 deletions components/account/AccountFollowRequestButton.vue

This file was deleted.

4 changes: 0 additions & 4 deletions components/account/AccountHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ async function copyAccountName() {

<template>
<div flex flex-col>
<div v-if="relationship?.requestedBy" p-4 flex justify-between items-center bg-card>
<span text-primary font-bold>{{ $t('account.requested', [account.displayName]) }}</span>
<AccountFollowRequestButton :account="account" :relationship="relationship" />
</div>
<component :is="hasHeader ? 'button' : 'div'" border="b base" z-1 @click="hasHeader ? previewHeader() : undefined">
<img h-50 height="200" w-full object-cover :src="account.header" :alt="t('account.profile_description', [account.username])">
</component>
Expand Down
15 changes: 0 additions & 15 deletions components/notification/NotificationCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ if (unsupportedEmojiReactionTypes.includes(notification.type))
</div>
</NuxtLink>
</template>
<template v-else-if="notification.type === 'follow_request'">
<div flex px-3 py-2>
<div i-ri-user-shared-line text-xl me-3 color-blue />
<AccountDisplayName
:account="notification.account"
text-primary me-1 font-bold line-clamp-1 ws-pre-wrap break-all
/>
<span me-1 ws-nowrap>
{{ $t('notification.request_to_follow') }}
</span>
</div>
<AccountCard p="s-2 e-4 b-2" hover-card :account="notification.account">
<AccountFollowRequestButton :account="notification.account" />
</AccountCard>
</template>
<template v-else-if="notification.type === 'update'">
<StatusCard :status="notification.status!" :in-notification="true" :actions="false">
<template #meta>
Expand Down
12 changes: 1 addition & 11 deletions locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"route_loaded": "تم تحميل الصفحة {0}"
},
"account": {
"authorize": "إعطاء إذن المتابعة",
"authorized": "لقد أعطيت إذن المتابعة",
"avatar_description": "صورة حساب {0}",
"blocked_by": "تم حظرك من قبل هذا المستخدم",
"blocked_domains": "النطاقات المحظورة",
Expand All @@ -19,7 +17,6 @@
"favourites": "المفضلة",
"follow": "إتبع",
"follow_back": "إعادة متابعة",
"follow_requested": "طلبت المتابعة",
"followers": "متابِعون",
"followers_count": "لا يوجد متابعون|{0} متابِع|{0} متابِعين|{0} متابِعون|{0} متابِع|{0} متابِع",
"following": "مُتابَع",
Expand All @@ -39,16 +36,11 @@
"profile_description": "{0} رأسية حساب",
"profile_personal_note": "ملاحظة شخصية",
"profile_unavailable": "حساب غير متوفر",
"reject": "رفض طلب المتابعة",
"rejected": "لقد رفضت طلب المتابعة",
"request_follow": "طلب متابعة",
"requested": "لقد طلب(ت) {0} متابعتك",
"unblock": "إلغاء حظر",
"unfollow": "إلغاء متابعة",
"unmute": "إلغاء كتم",
"view_other_followers": "قد لا يتم عرض المتابعين من خوادم مختلفين عن الخاص بك.",
"view_other_following": "قد لا يتم عرض من تتابع من خوادم مختلفين عن الخاص بك.",
"withdraw_follow_request": "إلغاء طلب المتابعة"
"view_other_following": "قد لا يتم عرض من تتابع من خوادم مختلفين عن الخاص بك."
},
"action": {
"apply": "تطبيق",
Expand Down Expand Up @@ -309,7 +301,6 @@
"missing_type": "MISSING notification.type:",
"reblogged_post": "اعاد نشر منشورك",
"reported": "تم الإبلاغ من {0} عن {1}",
"request_to_follow": "طلب(ت) متابعتك",
"signed_up": "تسجل",
"update_status": "قام(ت) بتحديث حالته(ا)"
},
Expand Down Expand Up @@ -602,7 +593,6 @@
"notifications_all": "كل شىء",
"notifications_favourite": "اضافة الى المفضلة",
"notifications_follow": "اتبع",
"notifications_follow_request": "طلب المتابعة",
"notifications_mention": "موجهة إلي",
"notifications_more_tooltip": "تصفية الإخطارات حسب النوع",
"notifications_reblog": "إعادة المدونات",
Expand Down
2 changes: 0 additions & 2 deletions locales/ca-valencia.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"blocked_domains": "Domini bloquejat",
"favourites": "Preferit",
"follow_back": "Segueix també",
"follow_requested": "Sol·licitat",
"go_to_profile": "Ves al perfil",
"joined": "Data d'unió",
"moved_title": "ha indicat que el seu compte és ara:",
Expand Down Expand Up @@ -161,7 +160,6 @@
"followed_you_count": "{0} persones t'han seguit|{0} persona t'ha seguit|{0} persones t'han seguit",
"missing_type": "MISSING notification.type:",
"reblogged_post": "t'ha impulsat",
"request_to_follow": "ha demanat seguir-te",
"signed_up": "s'ha registrat",
"update_status": "ha actualitzat la publicació"
},
Expand Down
12 changes: 1 addition & 11 deletions locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"route_loaded": "S'ha carregat la pàgina {0}"
},
"account": {
"authorize": "Autoritza seguiment",
"authorized": "Has autoritzat la sol·licitud",
"avatar_description": "Avatar de {0}",
"blocked_by": "Estàs bloquejat per aquest usuari.",
"blocked_domains": "Dominis bloquejats",
Expand All @@ -19,7 +17,6 @@
"favourites": "Preferits",
"follow": "Segueix",
"follow_back": "Segueix de tornada",
"follow_requested": "Demanat",
"followers": "Seguidors",
"followers_count": "{0} Seguidors|{0} Seguidor|{0} Seguidors",
"following": "Seguint",
Expand All @@ -40,16 +37,11 @@
"profile_description": "Capçalera del perfil de {0}",
"profile_personal_note": "Nota Personal",
"profile_unavailable": "Perfil no disponible",
"reject": "rebutja seguiment",
"rejected": "Has rebutjat la sol·licitud",
"request_follow": "Sol·licitud de seguiment",
"requested": "{0} ha sol·licitat seguir-te",
"unblock": "Desbloqueja",
"unfollow": "Deixa de seguir",
"unmute": "Activa el so",
"view_other_followers": "És possible que no es mostrin els seguidors d'altres instàncies.",
"view_other_following": "És possible que no es mostrin els seguits d'altres instàncies.",
"withdraw follow request": "Retira la sol·licitud de seguiment"
"view_other_following": "És possible que no es mostrin els seguits d'altres instàncies."
},
"action": {
"apply": "Aplicar",
Expand Down Expand Up @@ -340,7 +332,6 @@
"missing_type": "FALTA notificació.tipus:",
"reblogged_post": "ha reblogjat la teva publicació",
"reported": "{0} va denunciar {1}",
"request_to_follow": "demanat que us segueixi",
"signed_up": "registrat",
"update_status": "ha actualitzat la seva publicació"
},
Expand Down Expand Up @@ -665,7 +656,6 @@
"notifications_all": "Totes",
"notifications_favourite": "Preferides",
"notifications_follow": "T'han seguit",
"notifications_follow_request": "Sol·licituds de seguiment",
"notifications_mention": "Esmentes",
"notifications_more_tooltip": "Filtrar notificacions per tipus",
"notifications_poll": "Enquestes",
Expand Down
3 changes: 0 additions & 3 deletions locales/ckb.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"favourites": "دڵخواز",
"follow": "بەدواداچوون",
"follow_back": "دوا بکەوە",
"follow_requested": "داواکراوە",
"followers": "هۆگران",
"followers_count": "هۆگر {0}|هۆگر {0}|{0} هۆگر",
"following": "شوێنکەوتوو",
Expand All @@ -36,7 +35,6 @@
"profile_description": "سەردێڕی پڕۆفایلی {0}",
"profile_personal_note": "تێبینی کەسی",
"profile_unavailable": "پڕۆفایلی بەردەست نییە",
"request_follow": "داواکاری بۆ بەدواداچوون",
"unblock": "بلۆک بکەرەوە",
"unfollow": "بەدوایدا مەچۆ",
"unmute": "بێدەنگی لابەرە",
Expand Down Expand Up @@ -298,7 +296,6 @@
"missing_type": "MISSING notification.type:",
"reblogged_post": "هاوبەشیکردنی بابەتی تۆ",
"reported": "{0} گوزارشی {1}",
"request_to_follow": "داوای کردووە کە شوێنتان بکەوێت ",
"signed_up": "بوو به ئه ندام",
"update_status": "بابەتەکەیان نوێکردەوە"
},
Expand Down
2 changes: 0 additions & 2 deletions locales/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"favourites": "Oblíbené",
"follow": "Sledovat",
"follow_back": "Taky sledovat",
"follow_requested": "Požádáno o sledování",
"followers": "Sledující",
"followers_count": "{0} sledujících",
"following": "Sleduji",
Expand Down Expand Up @@ -133,7 +132,6 @@
"followed_you_count": "{n} osoba vás začala sledovat|{n} lidí vás začalo sledovat",
"missing_type": "MISSING notification.type:",
"reblogged_post": "přeposlal váš příspěvek",
"request_to_follow": "požádal o sledování",
"update_status": "aktualizoval svůj status"
},
"placeholder": {
Expand Down
2 changes: 0 additions & 2 deletions locales/cy.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"favourites": "Ffefrynnau",
"follow": "Dilyn",
"follow_back": "Dilyn yn ôl",
"follow_requested": "Wedi gofyn i ddilyn",
"followers": "Dilynwyr",
"followers_count": "{0} Dilynwr",
"following": "Yn dilyn",
Expand Down Expand Up @@ -191,7 +190,6 @@
"followed_you_count": "Gwnaeth {0} person eich dilyn",
"missing_type": "HEB notification.type:",
"reblogged_post": "bŵstiodd eich tŵt",
"request_to_follow": "gofynwyd i eich dilyn",
"signed_up": "wedi ymuno",
"update_status": "wedi golygu ei tŵt"
},
Expand Down
12 changes: 1 addition & 11 deletions locales/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"route_loaded": "Seite {0} geladen"
},
"account": {
"authorize": "Erlauben zu folgen",
"authorized": "Du hast die Folgeanfrage erlaubt",
"avatar_description": "Avatar von {0}",
"blocked_by": "Du wurdest von diesem Account geblockt",
"blocked_domains": "Geblockte Bluesky-Instanzen",
Expand All @@ -19,7 +17,6 @@
"favourites": "Favoriten",
"follow": "Folgen",
"follow_back": "Zurück folgen",
"follow_requested": "Angefragt",
"followers": "Follower",
"followers_count": "{0} Follower",
"following": "Du folgst",
Expand All @@ -40,16 +37,11 @@
"profile_description": "Profil von {0}",
"profile_personal_note": "Persönliche Notiz",
"profile_unavailable": "Profil nicht verfügbar",
"reject": "Folgeanfrage ablehnen",
"rejected": "Du hast den Antrag abgelehnt",
"request_follow": "Folgeanfrage senden",
"requested": "{0} will dir folgen",
"unblock": "Entblocken",
"unfollow": "Entfolgen",
"unmute": "Stummschaltung aufheben",
"view_other_followers": "Follower aus anderen Instanzen werden möglicherweise nicht angezeigt.",
"view_other_following": "Das Folgen von anderen Instanzen wird möglicherweise nicht angezeigt.",
"withdraw_follow_request": "Folgeanfrage zurückziehen"
"view_other_following": "Das Folgen von anderen Instanzen wird möglicherweise nicht angezeigt."
},
"action": {
"apply": "Anwenden",
Expand Down Expand Up @@ -341,7 +333,6 @@
"missing_type": "Fehlender notification.type:",
"reblogged_post": "hat deinen Beitrag geteilt",
"reported": "{0} hat {1} gemeldet",
"request_to_follow": "möchte dir folgen",
"signed_up": "hat sich registriert",
"update_status": "hat diesen Beitrag aktualisiert"
},
Expand Down Expand Up @@ -646,7 +637,6 @@
"notifications_all": "Alle",
"notifications_favourite": "Favorisiert",
"notifications_follow": "Folgen",
"notifications_follow_request": "Folgeanfrage",
"notifications_mention": "Erwähnung",
"notifications_more_tooltip": "Benachrichtigungen nach Typ filtern",
"notifications_reblog": "Geteilt",
Expand Down
12 changes: 1 addition & 11 deletions locales/el-GR.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"route_loaded": "Η σελίδα {0} φορτώθηκε"
},
"account": {
"authorize": "Εξουσιοδότησε για να ακολουθήσεις",
"authorized": "You have Authorized the request",
"avatar_description": "το άβαταρ του χρήστη {0}",
"blocked_by": "Είσαι αποκλεισμένος από αυτόν τον χρήστη.",
"blocked_domains": "Αποκλεισμένοι τομείς",
Expand All @@ -19,7 +17,6 @@
"favourites": "Αγαπημένα",
"follow": "Ακολούθησε",
"follow_back": "Ακολούθησε και συ",
"follow_requested": "Αιτήθηκε",
"followers": "Ακόλουθοι",
"followers_count": "{0} Ακόλουθοι|{0} Ακόλουθος|{0} Ακόλουθοι",
"following": "Ακολουθεί",
Expand All @@ -40,16 +37,11 @@
"profile_description": "Κεφαλίδα προφίλ του χρήστη {0}",
"profile_personal_note": "Προσωπική Σημείωση",
"profile_unavailable": "Μη διαθέσιμο προφίλ",
"reject": "Άρνηση ακολούθησης",
"rejected": "Αρνήθηκες το αίτημα",
"request_follow": "Αίτημα ακολούθησης",
"requested": "Ο χρήστης {0} ζήτησε να σε ακολουθήσει",
"unblock": "Άρση αποκλεισμού",
"unfollow": "Άρση ακολούθησης",
"unmute": "Άρση σίγασης",
"view_other_followers": "Οι ακόλουθοι από άλλες οντότητες μπορεί να μην εμφανίζονται.",
"view_other_following": "Αυτοί που ακολουθείς από άλλες οντότητες μπορεί να μην εμφανίζονται.",
"withdraw_follow_request": "Ανάκληση αιτήματος ακολούθησης"
"view_other_following": "Αυτοί που ακολουθείς από άλλες οντότητες μπορεί να μην εμφανίζονται."
},
"action": {
"apply": "Εφαρμογή",
Expand Down Expand Up @@ -334,7 +326,6 @@
"missing_type": "ΛΕΙΠΕΙ ειδοποίηση.τύπος:",
"reblogged_post": "ενίσχυσε την ανάρτησή σου",
"reported": "Ο χρήστης {0} ανέφερε {1}",
"request_to_follow": "αιτήθηκε να σε ακολουθήσει",
"signed_up": "έκανε εγγραφή",
"update_status": "ενημέρωσε την ανάρτησή του"
},
Expand Down Expand Up @@ -632,7 +623,6 @@
"notifications_all": "Όλα",
"notifications_favourite": "Αγαπημένα",
"notifications_follow": "Ακολουθείς",
"notifications_follow_request": "Αιτήματα ακολούθησης",
"notifications_mention": "Αναφορές",
"notifications_more_tooltip": "Φιλτράρισμα ειδοποιήσεων βάσει τύπου",
"notifications_reblog": "Ενίσχυση",
Expand Down
Loading