Skip to content

Commit

Permalink
enhance(backend): Sharkey를 사용하는 서버의 사용자가 설정한 아바타 장식을 자동으로 불러옴
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Oct 8, 2024
1 parent 812b869 commit 6ca5cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGE
- Enhance: 보안 향상을 위해 비밀번호 해싱 알고리즘이 `bcrypt`에서 `argon2`로 변경됨 (kokonect-link/cherrypick#511)
- 이제 72 바이트를 초과하는 비밀번호를 사용할 수 있습니다.
- 이로써 `Sharkey`, `FireFish`, `IceShrimp` 등의 클라이언트에서 `CherryPick`으로 이전할 때 암호 호환성이 보장됩니다.
- Enhance: `Sharkey`를 사용하는 서버의 사용자가 설정한 아바타 장식을 자동으로 불러옴
- Fix: 이모지를 등록하거나 가져오려고 할 때 오류가 발생할 수 있음 (kokonect-link/cherrypick#487), (kokonect-link/cherrypick#508)
- Fix: 사용자 이름에 `.`이 있는 경우 멘션을 할 수 없음 (kokonect-link/cherrypick#509)

Expand Down
4 changes: 1 addition & 3 deletions packages/backend/src/core/AvatarDecorationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ export class AvatarDecorationService implements OnApplicationShutdown {
const userHostUrl = `https://${user.host}`;
const showUserApiUrl = `${userHostUrl}/api/users/show`;

if (instance?.softwareName !== 'misskey' && instance?.softwareName !== 'cherrypick') {
return;
}
if (!['misskey', 'cherrypick', 'sharkey'].includes(<string>instance?.softwareName)) return;

const res = await this.httpRequestService.send(showUserApiUrl, {
method: 'POST',
Expand Down

0 comments on commit 6ca5cf1

Please sign in to comment.