chore: meRenoteCount -> myRenoteCount
This commit is contained in:
parent
b9e88ce490
commit
509690d84d
4 changed files with 4 additions and 4 deletions
|
@ -222,7 +222,7 @@ export const NoteRepository = db.getRepository(Note).extend({
|
|||
text: Not(IsNull()),
|
||||
},
|
||||
}),
|
||||
meRenoteCount: me
|
||||
myRenoteCount: me
|
||||
? Notes.count({
|
||||
where: {
|
||||
renoteId: note.id,
|
||||
|
|
|
@ -208,7 +208,7 @@ export const packedNoteSchema = {
|
|||
optional: true,
|
||||
nullable: true,
|
||||
},
|
||||
meRenoteCount: {
|
||||
myRenoteCount: {
|
||||
type: "number",
|
||||
optional: true,
|
||||
nullable: false,
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue