Compare commits

..

No commits in common. "f2eafaab73f6cfef3b1385ac2a61cf1ab385b001" and "851a3e35aea80c936b1327cc961ad327f2ac6a3c" have entirely different histories.

17 changed files with 30 additions and 24 deletions

View file

@ -24,7 +24,7 @@ services:
DFLY_snapshot_cron: '* * * * *'
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_lock_on_hashtags: true
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4

View file

@ -38,7 +38,7 @@ jobs:
env:
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_lock_on_hashtags: true
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4
@ -99,7 +99,7 @@ jobs:
env:
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_lock_on_hashtags: true
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4

View file

@ -44,8 +44,8 @@ spec:
value: false
- name: DFLY_tcp_backlog
value: 2048
- name: DFLY_default_lua_flags
value: allow-undeclared-keys
- name: DFLY_lock_on_hashtags
value: true
- name: DFLY_pipeline_squash
value: 0
- name: DFLY_multi_exec_squash

View file

@ -12,7 +12,7 @@ services:
DFLY_snapshot_cron: '* * * * *'
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_lock_on_hashtags: true
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4

View file

@ -32,7 +32,7 @@ services:
DFLY_snapshot_cron: '* * * * *'
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_lock_on_hashtags: true
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4

View file

@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "2024.5.0-io.5e",
"version": "2024.5.0-io.5d",
"codename": "nasubi",
"repository": {
"type": "git",

View file

@ -274,8 +274,12 @@ export class AccountMoveService {
if (!srcprofile || !dstprofile) return;
await this.userProfilesRepository.update({ userId: In([src.id, dst.id]) }, {
moderationNote: (srcprofile.moderationNote + '\n' + dstprofile.moderationNote).trim(),
await this.userProfilesRepository.update({ userId: dst.id }, {
moderationNote: srcprofile.moderationNote + '\n' + dstprofile.moderationNote,
});
await this.userProfilesRepository.update({ userId: src.id }, {
moderationNote: srcprofile.moderationNote + '\n' + dstprofile.moderationNote,
});
}

View file

@ -35,7 +35,7 @@ export class UtilityService {
@bindThis
public isUriLocal(uri: string): boolean {
return this.normalizeHost(this.config.host) === this.extractHost(uri);
return this.normalizeHost(this.config.hostname) === this.extractHost(uri);
}
@bindThis

View file

@ -524,8 +524,8 @@ export class ActivityPubServerService {
},
deriveConstraint(request: IncomingMessage) {
const accepted = accepts(request).type(['html', ACTIVITY_JSON, LD_JSON]);
if (accepted === false) return null;
return accepted !== 'html' ? 'ap' : 'html';
const isAp = typeof accepted === 'string' && !accepted.match(/html/);
return isAp ? 'ap' : 'html';
},
});

View file

@ -52,7 +52,7 @@ export const paramDef = {
type: 'object',
properties: {
title: { type: 'string' },
name: { type: 'string', minLength: 1, pattern: /^[a-zA-Z0-9_-]+$/.toString().slice(1, -1) },
name: { type: 'string', minLength: 1 },
summary: { type: 'string', nullable: true },
content: { type: 'array', items: {
type: 'object', additionalProperties: true,

View file

@ -57,7 +57,7 @@ export const paramDef = {
properties: {
pageId: { type: 'string', format: 'misskey:id' },
title: { type: 'string' },
name: { type: 'string', minLength: 1, pattern: /^[a-zA-Z0-9_-]+$/.toString().slice(1, -1) },
name: { type: 'string', minLength: 1 },
summary: { type: 'string', nullable: true },
content: { type: 'array', items: {
type: 'object', additionalProperties: true,

View file

@ -534,7 +534,7 @@ export class ClientServerService {
vary(reply.raw, 'Accept');
if (user) {
if (user != null) {
const profile = await this.userProfilesRepository.findOneByOrFail({ userId: user.id });
const meta = await this.metaService.fetch();
const me = profile.fields
@ -564,9 +564,11 @@ export class ClientServerService {
fastify.get<{ Params: { user: string; } }>('/users/:user', async (request, reply) => {
const user = await this.usersRepository.findOneBy({
id: request.params.user,
host: IsNull(),
isSuspended: false,
});
if (!user || (user.isDeleted && user.isSuspended)) {
if (user == null) {
reply.code(404);
return;
}

View file

@ -8,7 +8,7 @@ services:
environment:
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_lock_on_hashtags: true
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4

View file

@ -506,7 +506,7 @@ async function assignRole() {
const { canceled: canceled3, result: memo } = await os.inputText({
title: i18n.ts.addMemo,
type: 'textarea',
default: '',
placeholder: i18n.ts.memo,
});
if (canceled3) return;

View file

@ -146,7 +146,7 @@ async function assign() {
const { canceled: canceled3, result: memo } = await os.inputText({
title: i18n.ts.addMemo,
type: 'textarea',
default: '',
placeholder: i18n.ts.memo,
});
if (canceled3) return;

View file

@ -24,7 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #label>{{ i18n.ts._pages.summary }}</template>
</MkInput>
<MkInput v-model="name" type="text" pattern="^[a-zA-Z0-9_-]+$" autocapitalize="off">
<MkInput v-model="name">
<template #prefix>{{ url }}/@{{ author.username }}/pages/</template>
<template #label>{{ i18n.ts._pages.url }}</template>
</MkInput>
@ -158,7 +158,7 @@ function save() {
if (pageId.value) {
options.pageId = pageId.value;
os.apiWithDialog('pages/update', options)
misskeyApi('pages/update', options)
.then(page => {
currentName.value = name.value.trim();
os.alert({
@ -167,7 +167,7 @@ function save() {
});
}).catch(onError);
} else {
os.apiWithDialog('pages/create', options)
misskeyApi('pages/create', options)
.then(created => {
pageId.value = created.id;
currentName.value = name.value.trim();

View file

@ -1,7 +1,7 @@
{
"type": "module",
"name": "misskey-js",
"version": "2024.5.0-io.5e",
"version": "2024.5.0-io.5d",
"description": "Misskey SDK for JavaScript",
"types": "./built/dts/index.d.ts",
"exports": {