-
-
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
enhance(backend): headタグ内にrel=alternateの指定のあるlinkタグがある場合、記述されたURLを参照して照会できるように #14371
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
このPRによるapi.jsonの差分 差分はこちら |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #14371 +/- ##
===========================================
- Coverage 41.61% 39.87% -1.74%
===========================================
Files 1551 1547 -4
Lines 196905 190875 -6030
Branches 2772 3552 +780
===========================================
- Hits 81941 76116 -5825
+ Misses 114400 114167 -233
- Partials 564 592 +28 ☔ View full report in Codecov by Sentry. |
c5c5602
to
b15133c
Compare
テスト追加できたりするかしら |
APのSignedGetだからどうテスト書けばいいか悩んでいる (方針さえわかればかける)(というかそれがわからずテストを書いていないまであります) ダミーのサイトもう一つ用意するようなテストになる? |
なんかモックできたような気がする |
👍🏻 |
…て照会できるように (misskey-dev#14371) * signedGet時にhttpかつalternate属性のlinkがある場合に一回だけfollowして照会する * Fix: validation position * Fix import * Fix tagname * Update CHANGELOG * Fix code style --------- Co-authored-by: syuilo <[email protected]>
…て照会できるように (misskey-dev#14371) cherry picked from commit 9fbc1b7 Co-authored-by: syuilo <[email protected]> Co-authored-by: taichan <[email protected]>
What
ThreadsのようなHTMLのheadタグ内に
<link rel="alternate" href="https://example.com/activity/json/path/" type="application/activity+json">
のようなタグがある場合にそちらを追って照会できるようにWhy
resolve: #14348
Additional info (optional)
DOMを見るのでパフォーマンス上の懸念はある
リファクタの余地もあるかも(とりあえず動作確認はできた)
Checklist