mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-21 19:53:50 +01:00
Disable full-text search for visitors
This commit is contained in:
parent
dca344be07
commit
3cabaf92f8
@ -1133,6 +1133,8 @@ removeRecipient: "Remove recipient"
|
||||
removeMember: "Remove member"
|
||||
verifiedLink: "Verified link"
|
||||
openInMainColumn: "Open in main column"
|
||||
searchNotLoggedIn_1: "You have to be authenticated in order to use full text search."
|
||||
searchNotLoggedIn_2: "However, you can search using hashtags, and search users."
|
||||
|
||||
_sensitiveMediaDetection:
|
||||
description: "Reduces the effort of server moderation through automatically recognizing
|
||||
|
@ -15,7 +15,7 @@ import { sqlLikeEscape } from "@/misc/sql-like-escape.js";
|
||||
export const meta = {
|
||||
tags: ["notes"],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
requireCredentialPrivateMode: true,
|
||||
|
||||
res: {
|
||||
|
@ -25,7 +25,24 @@
|
||||
@slide-change="onSlideChange"
|
||||
>
|
||||
<swiper-slide>
|
||||
<XNotes ref="notes" :pagination="notesPagination" />
|
||||
<template v-if="$i">
|
||||
<XNotes ref="notes" :pagination="notesPagination" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
|
||||
<div class="_fullinfo" ref="notes">
|
||||
<img
|
||||
src="/static-assets/badges/info.png"
|
||||
class="_ghost"
|
||||
alt="Info"
|
||||
/>
|
||||
<div>
|
||||
{{ i18n.ts.searchNotLoggedIn_1 }}<br>
|
||||
{{ i18n.ts.searchNotLoggedIn_2 }}
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
</template>
|
||||
</swiper-slide>
|
||||
<swiper-slide>
|
||||
<XUserList
|
||||
@ -49,6 +66,7 @@ import { i18n } from "@/i18n";
|
||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||
import { defaultStore } from "@/store";
|
||||
import { deviceKind } from "@/scripts/device-kind";
|
||||
import { $i } from "@/account";
|
||||
import "swiper/scss";
|
||||
import "swiper/scss/virtual";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user