fix: show follow requests even if not locked

This commit is contained in:
ThatOneCalculator 2023-05-19 22:52:14 -07:00
parent ca686382b9
commit 95ca9701e9
3 changed files with 10 additions and 1 deletions

View file

@ -1088,6 +1088,7 @@ preventAiLearning: "Prevent AI bot scraping"
preventAiLearningDescription: "Request third-party AI language models not to study\
\ content you upload, such as posts and images."
noGraze: "Please disable the \"Graze for Mastodon\" browser extension, as it interferes with Calckey."
silencedWarning: "This page is showing because these usera are from servers your admin silenced, so they may potentially be spam."
_sensitiveMediaDetection:
description: "Reduces the effort of server moderation through automatically recognizing\

View file

@ -34,7 +34,7 @@ export const navbarItemDef = reactive({
followRequests: {
title: "followRequests",
icon: "ph-hand-waving ph-bold ph-lg",
show: computed(() => $i?.isLocked),
show: computed(() => $i?.isLocked || $i?.hasPendingReceivedFollowRequest),
indicated: computed(() => $i?.hasPendingReceivedFollowRequest),
to: "/my/follow-requests",
},

View file

@ -7,12 +7,19 @@
<div class="_fullinfo">
<img
src="/static-assets/badges/info.png"
aria-label="none"
class="_ghost"
/>
<div>{{ i18n.ts.noFollowRequests }}</div>
</div>
</template>
<template #default="{ items }">
<MkInfo
v-if="$i?.isLocked === false"
warn
class="info"
>{{ i18n.ts.silencedWarning }}
</MkInfo>
<div class="mk-follow-requests">
<div
v-for="req in items"
@ -82,6 +89,7 @@ import { userPage, acct } from "@/filters/user";
import * as os from "@/os";
import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata";
import { $i } from "@/account";
const paginationComponent = ref<InstanceType<typeof MkPagination>>();