Skip to content
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

release: v2024.8.0-kakurega.1.39.0 #155

Merged
merged 61 commits into from
Aug 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
008a66d
[skip ci] Update CHANGELOG.md (prepend template)
github-actions[bot] Jul 31, 2024
6e3e7d7
Update about-misskey.vue
syuilo Aug 8, 2024
820becb
fix import
syuilo Aug 9, 2024
f244d42
ci: change prerelease channels to alpha, beta, and rc (#14376)
anatawa12 Aug 9, 2024
0d508db
fix(backend): check visibility of following/followers of remote users…
tesaguri Aug 9, 2024
f509413
fix: readAllNotifications message not working (#14374)
anatawa12 Aug 9, 2024
01a815f
fix(general): some fixes and improvements of Play visibility (#14384)
zyoshoka Aug 10, 2024
7e3dedb
fix(frontend): ページ遷移に失敗することがある問題を修正 (bump vue version) (#14380)
kakkokari-gtyih Aug 10, 2024
1532d5f
ci: skip chromatic / storybook CI for pull requests targets master (#…
anatawa12 Aug 10, 2024
cb10156
fix(frontend): iOSでacctなどがリンクとして誤検知されるのを抑制 (#14354)
kakkokari-gtyih Aug 10, 2024
93c569c
refactor
syuilo Aug 10, 2024
37c9d91
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Aug 10, 2024
046f243
fix(frontend): mCaptchaを使用していてもbotプロテクションに関する警告が消えないのを修正 (#14390)
kakkokari-gtyih Aug 11, 2024
0aaf74e
fix(backend): InstanceEntityService.packMany に me が渡っていないのを修正 (#14360)
kakkokari-gtyih Aug 11, 2024
93fc06d
fix(backend): getApTypeでエラーを投げないように (#14361)
kakkokari-gtyih Aug 11, 2024
ab7bbd4
fix(backend): ダイレクト投稿をユーザーごとのチャートから除外 (#14350)
kakkokari-gtyih Aug 11, 2024
94b8c00
docker-compose.yml, compose.ymlを追跡対象外に追加 (#14345)
t1nyb0x Aug 11, 2024
2a2bbcd
New Crowdin updates (#14341)
syuilo Aug 11, 2024
4d75786
Bump version to 2024.8.0-alpha.0
github-actions[bot] Aug 11, 2024
41936c1
chore: fix some comments (#14394)
timesince Aug 12, 2024
cd21000
enhance(backend): 凍結されたアカウントのフォローリクエストを表示しないように
syuilo Aug 14, 2024
86dd4ab
Revert "enhance(backend): 凍結されたアカウントのフォローリクエストを表示しないように"
syuilo Aug 14, 2024
b68b2ee
refactor(frontend): remove stale reload method call on `/admin/users`…
zyoshoka Aug 14, 2024
45d8857
enhance(frontend): improve usability
syuilo Aug 15, 2024
a8810af
fix(backend): リバーシの設定変更が反映されないのを修正 (#14404)
kakkokari-gtyih Aug 16, 2024
2632204
fix(frontend): correct condition to displayed as system account on mo…
zyoshoka Aug 16, 2024
6db3c50
fix(frontend): Misskeyの利用中に使用できるタイムラインの種類が変化した場合、使用できないタイムラインが表示されないよ…
kakkokari-gtyih Aug 16, 2024
748a7e8
feat: localizable dialog title for enter section title (#14401)
anatawa12 Aug 16, 2024
571566d
Update timeline.vue (fix wrong type)
kakkokari-gtyih Aug 16, 2024
d3cdc08
fix(backend): 無制限にストリーミングのチャンネルに接続できる問題を修正
syuilo Aug 17, 2024
bfaf938
update misskey-dev/eslint-plugin
syuilo Aug 17, 2024
ef950a3
suspend周りの改修 (#14409)
syuilo Aug 17, 2024
2ab5ee8
Bump version to 2024.8.0-alpha.1
github-actions[bot] Aug 17, 2024
61cc3b5
New Crowdin updates (#14393)
syuilo Aug 17, 2024
059eb6d
fix(frontend): リノートの判定が甘いのを修正 (#14396)
kakkokari-gtyih Aug 17, 2024
06684fe
fix(backend): ベースロールのポリシー変更時モデレーションログが残るように (#14418)
kakkokari-gtyih Aug 17, 2024
68ec745
Bump version to 2024.8.0-beta.2
github-actions[bot] Aug 17, 2024
383c41b
:art:
syuilo Aug 17, 2024
fd744f4
enhance(backend): ページ、ギャラリー、Playのモデレーション強化 (#13523)
zyoshoka Aug 17, 2024
9fbc1b7
enhance(backend): headタグ内にrel=alternateの指定のあるlinkタグがある場合、記述されたURLを参照し…
tai-cha Aug 17, 2024
6cdecd7
Bump version to 2024.8.0-rc.3
github-actions[bot] Aug 17, 2024
75b0315
Update timeline.vue (refactor)
kakkokari-gtyih Aug 17, 2024
c0de57c
Update about-misskey.vue
syuilo Aug 17, 2024
4e0d570
fix(frontend): 以前のpopupの呼び出し方を修正 (#14421)
kakkokari-gtyih Aug 17, 2024
0b98554
Update CHANGELOG.md
kakkokari-gtyih Aug 17, 2024
83c04c5
fix(misskey-js): eliminate any (follow-up of #13523) (#14422)
kakkokari-gtyih Aug 17, 2024
129af06
Update packages/backend/src/core/activitypub/ApRequestService.ts
kakkokari-gtyih Aug 17, 2024
bf8c42e
Fix(beckend): html content-type detection on signedGet (#14424)
tai-cha Aug 17, 2024
e790aa0
[skip ci] New Crowdin updates (#14423)
syuilo Aug 17, 2024
ba9c5c3
Remove undefined style (#14427)
woxtu Aug 17, 2024
427f4a2
Update about-misskey.vue
syuilo Aug 18, 2024
1629c0e
New Crowdin updates (#14426)
syuilo Aug 18, 2024
9b78ce8
:art:
syuilo Aug 18, 2024
3cd5f86
Merge branch 'develop' of https://github.com/misskey-dev/misskey into…
syuilo Aug 18, 2024
9ce44b2
fix(backend): memory leak in memory caches (#14363)
warriordog Aug 18, 2024
b708b27
Bump version to 2024.8.0-rc.4
github-actions[bot] Aug 18, 2024
b53ee54
fix(frontend): focustrapがzindexを考慮するように (#14431)
kakkokari-gtyih Aug 18, 2024
2e8a102
Bump version to 2024.8.0-rc.5
github-actions[bot] Aug 18, 2024
f4f55ef
New translations ja-jp.yml (English) (#14432)
syuilo Aug 18, 2024
621626a
Release: 2024.8.0
github-actions[bot] Aug 18, 2024
7e29872
Merge tag '2024.8.0' into dev-kakurega
hideki0403 Aug 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enhance(backend): headタグ内にrel=alternateの指定のあるlinkタグがある場合、記述されたURLを参照し…
…て照会できるように (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]>
  • Loading branch information
tai-cha and syuilo authored Aug 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 9fbc1b7f7b71cf0eafadd728a6b66cb95a0c35d8
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
- Fix: 特定の条件下でノートの削除ボタンが出ないのを修正

### Server
- enhance: 照会時にURLがhtmlかつheadタグ内に`rel="alternate"`, `type="application/activity+json"`の`link`タグがある場合に追ってリンク先を照会できるように
- Enhance: 凍結されたアカウントのフォローリクエストを表示しないように
- Fix: WSの`readAllNotifications` メッセージが `body` を持たない場合に動作しない問題 #14374
- 通知ページや通知カラム(デッキ)を開いている状態において、新たに発生した通知が既読されない問題が修正されます。
24 changes: 22 additions & 2 deletions packages/backend/src/core/activitypub/ApRequestService.ts
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
import * as crypto from 'node:crypto';
import { URL } from 'node:url';
import { Inject, Injectable } from '@nestjs/common';
import { Window } from 'happy-dom';
import { DI } from '@/di-symbols.js';
import type { Config } from '@/config.js';
import type { MiUser } from '@/models/User.js';
@@ -180,7 +181,8 @@ export class ApRequestService {
* @param url URL to fetch
*/
@bindThis
public async signedGet(url: string, user: { id: MiUser['id'] }): Promise<unknown> {
public async signedGet(url: string, user: { id: MiUser['id'] }, followAlternate?: boolean): Promise<unknown> {
const _followAlternate = followAlternate ?? true;
const keypair = await this.userKeypairService.getUserKeypair(user.id);

const req = ApRequestCreator.createSignedGet({
@@ -198,9 +200,27 @@ export class ApRequestService {
headers: req.request.headers,
}, {
throwErrorWhenResponseNotOk: true,
validators: [validateContentTypeSetAsActivityPub],
});

//#region リクエスト先がhtmlかつactivity+jsonへのalternate linkタグがあるとき
if (res.headers.get('Content-type')?.startsWith('text/html;') && _followAlternate === true) {
const html = await res.text();
const window = new Window();
const document = window.document;
document.documentElement.innerHTML = html;

const alternate = document.querySelector('head > link[rel="alternate"][type="application/activity+json"]');
if (alternate) {
const href = alternate.getAttribute('href');
if (href) {
return await this.signedGet(href, user, false);
}
}
}
//#endregion

validateContentTypeSetAsActivityPub(res);

return await res.json();
}
}