mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-05 16:24:10 +02:00
Merge branch 'develop' into room
This commit is contained in:
@@ -30,6 +30,8 @@
|
|||||||
(Cherry-picked from https://github.com/lqvp/misskey-tempura/commit/3f0f4bfe923f2b3a7837017b54841598f421c6ef)
|
(Cherry-picked from https://github.com/lqvp/misskey-tempura/commit/3f0f4bfe923f2b3a7837017b54841598f421c6ef)
|
||||||
- Fix: support activity with `actor` as an id string or embedded object in inbox processor and ActivityPub inbox service
|
- Fix: support activity with `actor` as an id string or embedded object in inbox processor and ActivityPub inbox service
|
||||||
- Fix: コンフィグファイルに `meilisearch` の設定がある状態でほかの検索プロバイダを利用すると、UI上からリモートのノートの検索ができない問題を修正
|
- Fix: コンフィグファイルに `meilisearch` の設定がある状態でほかの検索プロバイダを利用すると、UI上からリモートのノートの検索ができない問題を修正
|
||||||
|
- Fix: ノートに関する通知で公開範囲が考慮されていない問題を修正
|
||||||
|
(Cherry-picked from https://github.com/lqvp/misskey-tempura/commit/cbce96c520a138b8bcd16890ff6f2952830fa166 originally presented in https://github.com/yojo-art/cherrypick/pull/743)
|
||||||
|
|
||||||
## 2026.3.2
|
## 2026.3.2
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "2026.4.0-beta.0",
|
"version": "2026.4.0-beta.1",
|
||||||
"codename": "nasubi",
|
"codename": "nasubi",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ class NotificationManager {
|
|||||||
constructor(
|
constructor(
|
||||||
private mutingsRepository: MutingsRepository,
|
private mutingsRepository: MutingsRepository,
|
||||||
private notificationService: NotificationService,
|
private notificationService: NotificationService,
|
||||||
|
private followingsRepository: FollowingsRepository,
|
||||||
notifier: { id: MiUser['id']; },
|
notifier: { id: MiUser['id']; },
|
||||||
note: MiNote,
|
note: MiNote,
|
||||||
) {
|
) {
|
||||||
@@ -101,7 +102,47 @@ class NotificationManager {
|
|||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async notify() {
|
public async notify() {
|
||||||
|
if (this.queue.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const targetUserIds = this.queue.map(x => x.target);
|
||||||
|
let visibleUserIds: Set<string>;
|
||||||
|
|
||||||
|
switch (this.note.visibility) {
|
||||||
|
case 'public':
|
||||||
|
case 'home':
|
||||||
|
visibleUserIds = new Set(targetUserIds);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'specified':
|
||||||
|
visibleUserIds = new Set(this.note.visibleUserIds.filter(id => targetUserIds.includes(id)));
|
||||||
|
break;
|
||||||
|
|
||||||
|
// TODO: フォロワー限定ノートにフォロワーではない人がメンションされた場合通知されるのが正しい挙動なのか確認(一部に挙動の不一致がありそう)。現状は通知されるためフィルタしない
|
||||||
|
// case 'followers': {
|
||||||
|
// const followers = await this.followingsRepository.find({
|
||||||
|
// where: {
|
||||||
|
// followeeId: this.note.userId,
|
||||||
|
// followerId: In(targetUserIds),
|
||||||
|
// isFollowerHibernated: false,
|
||||||
|
// },
|
||||||
|
// select: ['followerId'],
|
||||||
|
// });
|
||||||
|
// visibleUserIds = new Set(followers.map(f => f.followerId));
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
|
||||||
|
default:
|
||||||
|
visibleUserIds = new Set();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
for (const x of this.queue) {
|
for (const x of this.queue) {
|
||||||
|
if (!visibleUserIds.has(x.target)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (x.reason === 'renote') {
|
if (x.reason === 'renote') {
|
||||||
this.notificationService.createNotification(x.target, 'renote', {
|
this.notificationService.createNotification(x.target, 'renote', {
|
||||||
noteId: this.note.id,
|
noteId: this.note.id,
|
||||||
@@ -772,7 +813,7 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||||||
|
|
||||||
this.webhookService.enqueueUserWebhook(user.id, 'note', { note: noteObj });
|
this.webhookService.enqueueUserWebhook(user.id, 'note', { note: noteObj });
|
||||||
|
|
||||||
const nm = new NotificationManager(this.mutingsRepository, this.notificationService, user, note);
|
const nm = new NotificationManager(this.mutingsRepository, this.notificationService, this.followingsRepository, user, note);
|
||||||
|
|
||||||
await this.createMentionedEvents(mentionedUsers, note, nm);
|
await this.createMentionedEvents(mentionedUsers, note, nm);
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,11 @@ const isBeta = version.includes('-beta') || version.includes('-alpha') || versio
|
|||||||
|
|
||||||
function whatIsNew() {
|
function whatIsNew() {
|
||||||
modal.value?.close();
|
modal.value?.close();
|
||||||
|
if (isBeta) {
|
||||||
|
window.open(`https://github.com/misskey-dev/misskey/releases/tag/${version}`, '_blank');
|
||||||
|
} else {
|
||||||
window.open(`https://misskey-hub.net/docs/releases/#_${version.replace(/\./g, '')}`, '_blank');
|
window.open(`https://misskey-hub.net/docs/releases/#_${version.replace(/\./g, '')}`, '_blank');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"name": "misskey-js",
|
"name": "misskey-js",
|
||||||
"version": "2026.4.0-beta.0",
|
"version": "2026.4.0-beta.1",
|
||||||
"description": "Misskey SDK for JavaScript",
|
"description": "Misskey SDK for JavaScript",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user