Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
19807c8
UID,GIDを環境ファイルの設定から設定するよう修正
icalo35 Jul 24, 2023
cd753b9
Merge branch 'misskey-dev-13.14.1'
icalo35 Jul 24, 2023
caf83c5
Merge branch 'misskey-dev-13.14.2'
icalo35 Jul 31, 2023
6521365
Merge branch 'misskey-dev-2023.9.3'
icalo35 Oct 7, 2023
f3505a3
Clipへのノート追加回数制限を大幅に緩和(20/1hour → 100/1hour)
icalo35 Oct 7, 2023
a6a99ae
Merge branch 'misskey-dev-2023.11.1'
icalo35 Dec 17, 2023
639358f
Merge branch 'misskey-dev-2024.2.0'
icalo35 Feb 28, 2024
f795907
spec(backend/NoteCreateService): ローカルユーザーがまだ誰もフォローしていないリモートユーザーによる通知を…
u1-liquid Feb 17, 2024
98ded2e
ロギング周りの修正
na2na-p Feb 18, 2024
54eb28c
弾く弾かないの挙動決定をdefault.ymlにやらせる
na2na-p Feb 18, 2024
6459c83
交流無しユーザからの投稿拒否機能をcherry-pickし、CHANGELOG等に追記
icalo35 Feb 28, 2024
9eaef62
Merge branch 'misskey-dev-2024.3.1'
icalo35 Apr 21, 2024
a81394a
変更履歴 2024.2.0-voskeyの位置を変更
icalo35 Apr 21, 2024
c12730a
Merge branch 'misskey-dev-2024.5.0'
icalo35 Jun 15, 2024
1184447
(cherry-pick分の除去) 「ローカルユーザーがまだ誰もフォローしていないリモートユーザーによる通知を引き起こす可能性のある投稿を…
icalo35 Jun 15, 2024
8c5a9b4
新規ユーザの「常に広告を表示する」をデフォルトでオンとする
icalo35 Jun 15, 2024
9fda3a4
デフォルトの絵文字をオススメのものに変更
icalo35 Jun 15, 2024
d4b24e1
2024.5.0-voskeyの変更履歴の追加
icalo35 Jun 15, 2024
d237651
Merge branch 'misskey-dev-2024.8.0'
icalo35 Sep 8, 2024
3f0f9bc
Merge branch 'misskey-dev-2024.11.0'
icalo35 Dec 1, 2024
c507196
spec(backend/NoteCreateService): ローカルユーザーがまだ誰もフォローしていないリモートユーザーによる通知を…
u1-liquid Feb 17, 2024
92c3074
ロギング周りの修正
na2na-p Feb 18, 2024
b0fb15a
弾く弾かないの挙動決定をdefault.ymlにやらせる
na2na-p Feb 18, 2024
7ff40a2
交流無しユーザからの投稿拒否機能をcherry-pickし、CHANGELOG等に追記(10ヵ月ぶり2回目)
icalo35 Dec 1, 2024
b54f23c
Merge tag '2025.4.0' into voskey-main
FineArchs Apr 9, 2025
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
4 changes: 4 additions & 0 deletions .config/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ signToActivityPubGet: true
# PID File of master process
#pidFile: /tmp/misskey.pid

# ローカル宛てのメンション、リプライ、引用ノートの発行元が、ローカルユーザーにフォローされていない場合に投稿を拒否するかどうか
# default: false
# misskeyBlockMentionsFromUnfamiliarRemoteUsers: false

# Log settings
# logging:
# sql:
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@
### Misskey.js
- Feat: allow setting `binaryType` of WebSocket connection

## 2024.11.0-voskey
### Server
- 以下の借用機能は任意にON/OFF出来るのでわざわざ除去する必要がなく、使いたい状況がある事に気付いたので、OFFの状態で再度導入 → (ローカルユーザーがまだ誰もフォローしていないリモートユーザーによる通知を引き起こす可能性のある投稿を拒否できるように)

## 2024.11.0

### Note
Expand Down Expand Up @@ -602,6 +606,14 @@
- Feat: `/drive/files/create` のリクエストに対応(`multipart/form-data`に対応)
- Feat: `/admin/role/create` のロールポリシーの型を修正


## 2024.5.0-voskey
### Server
- 以下の機能を除去して元に戻す → (ローカルユーザーがまだ誰もフォローしていないリモートユーザーによる通知を引き起こす可能性のある投稿を拒否できるように)
### Client
- デフォルトで「常に広告を表示する」をオンに
- デフォルトのピン留め(リアクション)を変更

## 2024.5.0

### Note
Expand Down Expand Up @@ -707,6 +719,7 @@
- Fix: もともとセンシティブではないと連合されていたファイルがセンシティブとして連合された場合にセンシティブとしてそのファイルを扱うように
- センシティブとして連合したファイルは非センシティブとして連合されてもセンシティブとして扱われます


## 2024.3.1

### General
Expand Down Expand Up @@ -759,6 +772,10 @@
- `category`および`licence`が指定なしの時勝手にnullに上書きされる挙動を修正
- Fix: 通知の受信設定で「相互フォロー」が正しく動作しない問題を修正

## 2024.2.0-voskey
### Server
- ローカルユーザーがまだ誰もフォローしていないリモートユーザーによる通知を引き起こす可能性のある投稿を拒否できるように(すしすきー様 2024.2.0-sushiskiより借用)

## 2024.2.0

### Note
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \

FROM --platform=$TARGETPLATFORM node:${NODE_VERSION}-slim AS runner

ARG UID="991"
ARG GID="991"
ARG UID_H
ARG GID_H

ARG UID=${UID_H}
ARG GID=${GID_H}

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "2025.4.0",
"version": "2025.4.0-voskey",
"codename": "nasubi",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions packages/backend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ type Source = {
perUserNotificationsMaxCount?: number;
deactivateAntennaThreshold?: number;
pidFile: string;
misskeyBlockMentionsFromUnfamiliarRemoteUsers?: boolean;

logging?: {
sql?: {
Expand Down Expand Up @@ -214,6 +215,7 @@ export type Config = {
perUserNotificationsMaxCount: number;
deactivateAntennaThreshold: number;
pidFile: string;
misskeyBlockMentionsFromUnfamiliarRemoteUsers: boolean;
};

export type FulltextSearchProvider = 'sqlLike' | 'sqlPgroonga' | 'meilisearch';
Expand Down Expand Up @@ -329,6 +331,7 @@ export function loadConfig(): Config {
perUserNotificationsMaxCount: config.perUserNotificationsMaxCount ?? 500,
deactivateAntennaThreshold: config.deactivateAntennaThreshold ?? (1000 * 60 * 60 * 24 * 7),
pidFile: config.pidFile,
misskeyBlockMentionsFromUnfamiliarRemoteUsers: config.misskeyBlockMentionsFromUnfamiliarRemoteUsers ?? false,
logging: config.logging,
};
}
Expand Down
9 changes: 9 additions & 0 deletions packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,15 @@ export class NoteCreateService implements OnApplicationShutdown {
// if the host is media-silenced, custom emojis are not allowed
if (this.utilityService.isMediaSilencedHost(this.meta.mediaSilencedHosts, user.host)) emojis = [];

const willCauseNotification = mentionedUsers.filter(u => u.host === null).length > 0 || data.reply?.userHost === null || data.renote?.userHost === null;

if (this.config.misskeyBlockMentionsFromUnfamiliarRemoteUsers === true && user.host !== null && willCauseNotification) {
const userEntity = await this.usersRepository.findOneBy({ id: user.id });
if ((userEntity?.followersCount ?? 0) === 0) {
throw new Error('Temporarily, notes including mentions, replies and renotes to local-user from remote users which is not followed by local-users are not allowed');
}
}

tags = tags.filter(tag => Array.from(tag).length <= 128).splice(0, 32);

if (data.reply && (user.id !== data.reply.userId) && !mentionedUsers.some(u => u.id === data.reply!.userId)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const meta = {

limit: {
duration: ms('1hour'),
max: 20,
max: 100,
},

errors: {
Expand Down
22 changes: 21 additions & 1 deletion packages/frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,26 @@
where: 'account',
default: false,
},
memo: {
where: 'account',
default: null,
},
reactions: {
where: 'account',
default: ['👍', '❤️', '⭐', '🤔', '😩', '㊗️', '🍮' , ':iihanashi:','🈂️',':kandou:', ':voskey_icon:' , ':takahashi_fankit:'],

Check failure on line 185 in packages/frontend/src/store.ts

View workflow job for this annotation

GitHub Actions / lint (frontend)

There should be no space before ','

Check failure on line 185 in packages/frontend/src/store.ts

View workflow job for this annotation

GitHub Actions / lint (frontend)

A space is required after ','

Check failure on line 185 in packages/frontend/src/store.ts

View workflow job for this annotation

GitHub Actions / lint (frontend)

A space is required after ','

Check failure on line 185 in packages/frontend/src/store.ts

View workflow job for this annotation

GitHub Actions / lint (frontend)

There should be no space before ','
},
pinnedEmojis: {
where: 'account',
default: [],
},
reactionAcceptance: {
where: 'account',
default: 'nonSensitiveOnly' as 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null,
},
mutedAds: {
where: 'account',
default: [] as string[],
},
menu: {
where: 'deviceAccount',
default: [
Expand Down Expand Up @@ -340,7 +360,7 @@
},
forceShowAds: {
where: 'device',
default: false,
default: true,
},
aiChanMode: {
where: 'device',
Expand Down
Loading