From 57aa44bf7154821bc38b3b40824b4433d8a97a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=99=8E=E6=95=85=E6=B4=9E?= <55782476+TigerCubDen@users.noreply.github.com> Date: Tue, 23 Feb 2021 07:57:14 +0800 Subject: [PATCH] fix(docs): update social-media for Fur Affinity (#7000) * Update social-media.md * Update social-media.md * Update social-media.md * Update radar-rules.js * Update radar-rules.js * Update radar-rules.js --- assets/radar-rules.js | 11 ++++++++--- docs/en/social-media.md | 28 ++++++++++++++-------------- docs/social-media.md | 2 +- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/assets/radar-rules.js b/assets/radar-rules.js index 8c27c3a925..48b5292ecb 100644 --- a/assets/radar-rules.js +++ b/assets/radar-rules.js @@ -2757,7 +2757,12 @@ title: '搜索', docs: 'https://docs.rsshub.app/social-media.html#fur-affinity', source: '/search/', - target: (params, url) => `/furaffinity/search/${new URL(url).searchParams.get('q')}`, + target: (params, url) => { + const keyword = new URL(url).searchParams.get('q'); + if (keyword) { + return `/furaffinity/search/${keyword}`; + } + }, }, { title: '用户主页简介', @@ -2784,10 +2789,10 @@ target: '/furaffinity/commissions/:username', }, { - title: '用户的Shouts留言', + title: '用户的 Shouts 留言', docs: 'https://docs.rsshub.app/social-media.html#fur-affinity', source: '/user/:username/', - target: '/furaffinity/user/:username', + target: '/furaffinity/shouts/:username', }, { title: '用户的日记', diff --git a/docs/en/social-media.md b/docs/en/social-media.md index 00784d53b8..28a67a676d 100644 --- a/docs/en/social-media.md +++ b/docs/en/social-media.md @@ -38,7 +38,7 @@ pageClass: routes ### Home - + Type @@ -50,7 +50,7 @@ Type ### Browse - + ### Website Status @@ -58,51 +58,51 @@ Type ### Userpage Profile - + ### Search - + ### User's Watching List - + ### User's Watcher List - + ### User's Commission Information - + ### User's Shouts - + ### User's Journals - + ### User's Gallery - + ### User's Scraps - + ### User's Favorites - + ### Submission Comments - + ### Journal Comments - + ## Gab diff --git a/docs/social-media.md b/docs/social-media.md index 05dcd32de4..84c66be6a6 100644 --- a/docs/social-media.md +++ b/docs/social-media.md @@ -324,7 +324,7 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性 ### 主页 - + 类型 type