mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-30 06:02:50 +01:00
* カスタム絵文字リアクションがプレビューされない不具合を修正 * add comments
This commit is contained in:
parent
e0e4b43707
commit
e184c1cdfb
1 changed files with 5 additions and 1 deletions
|
@ -79,7 +79,11 @@ export default define(meta, async (ps, user) => {
|
||||||
} as DeepPartial<NoteReaction>;
|
} as DeepPartial<NoteReaction>;
|
||||||
|
|
||||||
if (ps.type) {
|
if (ps.type) {
|
||||||
query.reaction = ps.type;
|
// ローカルリアクションはホスト名が . とされているが
|
||||||
|
// DB 上ではそうではないので、必要に応じて変換
|
||||||
|
const suffix = '@.:';
|
||||||
|
const type = ps.type.endsWith(suffix) ? ps.type.slice(0, ps.type.length - suffix.length) + ':' : ps.type;
|
||||||
|
query.reaction = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
const reactions = await NoteReactions.find({
|
const reactions = await NoteReactions.find({
|
||||||
|
|
Loading…
Reference in a new issue