mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
* カスタム絵文字リアクションがプレビューされない不具合を修正 * add comments
This commit is contained in:
parent
8bdb9fe85e
commit
73f34b92e5
@ -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 New Issue
Block a user