-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: 外部サイトへのリンクは移動の前に警告を表示するように #13557
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #13557 +/- ##
============================================
- Coverage 77.99% 66.33% -11.67%
============================================
Files 185 991 +806
Lines 25443 116414 +90971
Branches 485 4448 +3963
============================================
+ Hits 19845 77219 +57374
- Misses 5591 39163 +33572
- Partials 7 32 +25 ☔ View full report in Codecov by Sentry. |
(cherry picked from commit 01ec286)
↑ひきつぎした |
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -416,6 +416,12 @@
"notesPerOneAd": {
"type": "number"
},
+ "trustedLinkUrlPatterns": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
"backgroundImageUrl": {
"type": [
"string",
@@ -627,6 +633,7 @@
"perUserHomeTimelineCacheMax",
"perUserListTimelineCacheMax",
"notesPerOneAd",
+ "trustedLinkUrlPatterns",
"backgroundImageUrl",
"deeplAuthKey",
"deeplIsPro",
@@ -12957,6 +12964,15 @@
],
"description": "[Deprecated] Use \"urlPreviewSummaryProxyUrl\" instead."
},
+ "trustedLinkUrlPatterns": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "string"
+ }
+ },
"urlPreviewEnabled": {
"type": "boolean"
},
@@ -78670,6 +78686,12 @@
]
}
},
+ "trustedLinkUrlPatterns": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
"notesPerOneAd": {
"type": "number",
"default": 0
@@ -78765,6 +78787,7 @@
"iconUrl",
"maxNoteTextLength",
"ads",
+ "trustedLinkUrlPatterns",
"notesPerOneAd",
"enableEmail",
"enableServiceWorker", |
Co-authored-by: まっちゃとーにゅ <[email protected]>
(cherry picked from commit f7ec503)
This reverts commit abf6a74.
引き継ぎます |
実際に進んでみないと安全かどうか確認できない気もする |
checkRedirectingOtherHost がlocaleに定義されてなさそう |
そもそも checkRedirectingOtherHost はどこでも使われてないわね |
コンフリクト解消 |
What
Cherry-picked from MisskeyIO#558 MisskeyIO@f7ec503
書いてあるとおり
Why
Fix #13614
Additional info (optional)
Checklist