Compare commits
11 Commits
2025.3.1-b
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bef73ff530 | ||
![]() |
7c1dc3d632 | ||
![]() |
c53349c3b4 | ||
![]() |
a710af54ed | ||
![]() |
4d31c0b1de | ||
![]() |
a5f28c21e4 | ||
![]() |
c93ead7474 | ||
![]() |
36880493cb | ||
![]() |
e8518de054 | ||
![]() |
b99e13e667 | ||
![]() |
2518cf36d0 |
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Fix: DBマイグレーション際にシステムアカウントのユーザーID判定が正しくない問題を修正
|
- Fix: DBマイグレーション際にシステムアカウントのユーザーID判定が正しくない問題を修正
|
||||||
|
- Fix: user.featured列が状況によってJSON文字列になっていたのを修正
|
||||||
|
|
||||||
|
|
||||||
## 2025.3.0
|
## 2025.3.0
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "2025.3.1-beta.2",
|
"version": "2025.3.1",
|
||||||
"codename": "nasubi",
|
"codename": "nasubi",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@@ -0,0 +1,26 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class UserFeaturedFixup1741424411879 {
|
||||||
|
name = 'UserFeaturedFixup1741424411879'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`CREATE OR REPLACE FUNCTION pg_temp.extract_ap_id(text) RETURNS text AS $$
|
||||||
|
SELECT
|
||||||
|
CASE
|
||||||
|
WHEN $1 ~ '^https?://' THEN $1
|
||||||
|
WHEN $1 LIKE '{%' THEN COALESCE(jsonb_extract_path_text($1::jsonb, 'id'), null)
|
||||||
|
ELSE null
|
||||||
|
END;
|
||||||
|
$$ LANGUAGE sql IMMUTABLE;`);
|
||||||
|
|
||||||
|
// "host" is NOT NULL is not needed but just in case add it to prevent overwriting irreplaceable data
|
||||||
|
await queryRunner.query(`UPDATE "user" SET "featured" = pg_temp.extract_ap_id("featured") WHERE "host" IS NOT NULL`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
// fixup migration, no down migration
|
||||||
|
}
|
||||||
|
}
|
@@ -560,7 +560,7 @@ export class ApPersonService implements OnModuleInit {
|
|||||||
inbox: person.inbox,
|
inbox: person.inbox,
|
||||||
sharedInbox: person.sharedInbox ?? person.endpoints?.sharedInbox ?? null,
|
sharedInbox: person.sharedInbox ?? person.endpoints?.sharedInbox ?? null,
|
||||||
followersUri: person.followers ? getApId(person.followers) : undefined,
|
followersUri: person.followers ? getApId(person.followers) : undefined,
|
||||||
featured: person.featured,
|
featured: person.featured ? getApId(person.featured) : undefined,
|
||||||
emojis: emojiNames,
|
emojis: emojiNames,
|
||||||
name: truncate(person.name, nameLength),
|
name: truncate(person.name, nameLength),
|
||||||
tags,
|
tags,
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"name": "misskey-js",
|
"name": "misskey-js",
|
||||||
"version": "2025.3.1-beta.2",
|
"version": "2025.3.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