mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(core): reverted malicious discord link change (#11189)
Co-authored-by: Jimmfly <yangjinfei001@gmail.com>
This commit is contained in:
@@ -59,8 +59,6 @@ type ImportConfig = {
|
||||
) => Promise<ImportResult>;
|
||||
};
|
||||
|
||||
const DISCORD_URL = 'https://discord.gg/Yjf5VFEn';
|
||||
|
||||
const importOptions = [
|
||||
{
|
||||
key: 'markdown',
|
||||
@@ -305,7 +303,7 @@ const ImportOptions = ({
|
||||
{t['com.affine.import.modal.tip']()}{' '}
|
||||
<a
|
||||
className={style.link}
|
||||
href="https://discord.gg/Yjf5VFEn"
|
||||
href={BUILD_CONFIG.discordUrl}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
@@ -342,7 +340,7 @@ const SuccessStatus = ({ onComplete }: { onComplete: () => void }) => {
|
||||
{t['com.affine.import.status.success.message']()}{' '}
|
||||
<a
|
||||
className={style.link}
|
||||
href={DISCORD_URL}
|
||||
href={BUILD_CONFIG.discordUrl}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
@@ -379,7 +377,7 @@ const ErrorStatus = ({
|
||||
<div className={style.importModalButtonContainer}>
|
||||
<Button
|
||||
onClick={() => {
|
||||
urlService.openPopupWindow(DISCORD_URL);
|
||||
urlService.openPopupWindow(BUILD_CONFIG.discordUrl);
|
||||
}}
|
||||
variant="secondary"
|
||||
>
|
||||
|
||||
@@ -21,7 +21,7 @@ export const relatedLinks = [
|
||||
{
|
||||
icon: <DiscordIcon />,
|
||||
title: 'Discord',
|
||||
link: 'https://discord.gg/Yjf5VFEn',
|
||||
link: BUILD_CONFIG.discordUrl,
|
||||
},
|
||||
{
|
||||
icon: <YouTubeIcon />,
|
||||
|
||||
@@ -100,7 +100,7 @@ const FeedbackIcon = ({ type }: { type: Flag['feedbackType'] }) => {
|
||||
};
|
||||
|
||||
const feedbackLink: Record<NonNullable<Flag['feedbackType']>, string> = {
|
||||
discord: 'https://discord.gg/Yjf5VFEn',
|
||||
discord: BUILD_CONFIG.discordUrl,
|
||||
email: 'mailto:support@toeverything.info',
|
||||
github: 'https://github.com/toeverything/AFFiNE/issues',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user