Fix NoteReaction (#4547)
This commit is contained in:
parent
1d7933349b
commit
1c79e30436
4 changed files with 9 additions and 10 deletions
|
|
@ -7,7 +7,7 @@ import { length } from 'stringz';
|
|||
import { IUser, pack as packUser } from './user';
|
||||
import { pack as packApp } from './app';
|
||||
import PollVote from './poll-vote';
|
||||
import Reaction from './note-reaction';
|
||||
import NoteReaction from './note-reaction';
|
||||
import { packMany as packFileMany, IDriveFile } from './drive-file';
|
||||
import Following from './following';
|
||||
import Emoji from './emoji';
|
||||
|
|
@ -357,7 +357,7 @@ export const pack = async (
|
|||
if (meId) {
|
||||
// Fetch my reaction
|
||||
_note.myReaction = (async () => {
|
||||
const reaction = await Reaction
|
||||
const reaction = await NoteReaction
|
||||
.findOne({
|
||||
userId: meId,
|
||||
noteId: id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue