chore: meRenoteCount -> myRenoteCount

This commit is contained in:
naskya 2024-04-22 05:43:58 +09:00
parent b9e88ce490
commit 509690d84d
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
4 changed files with 4 additions and 4 deletions

View file

@ -222,7 +222,7 @@ export const NoteRepository = db.getRepository(Note).extend({
text: Not(IsNull()),
},
}),
meRenoteCount: me
myRenoteCount: me
? Notes.count({
where: {
renoteId: note.id,

View file

@ -208,7 +208,7 @@ export const packedNoteSchema = {
optional: true,
nullable: true,
},
meRenoteCount: {
myRenoteCount: {
type: "number",
optional: true,
nullable: false,

View file

@ -73,7 +73,7 @@ useTooltip(buttonRef, async (showing) => {
});
const hasRenotedBefore = ref(
props.note.meRenoteCount && props.note.meRenoteCount > 0,
props.note.myRenoteCount && props.note.myRenoteCount > 0,
);
const renote = (viaKeyboard = false, ev?: MouseEvent) => {

View file

@ -174,7 +174,7 @@ export type Note = {
channelId?: Channel["id"];
channel?: Channel;
myReaction?: string;
meRenoteCount?: number;
myRenoteCount?: number;
reactions: Record<string, number>;
renoteCount: number;
repliesCount: number;