mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
fix
This commit is contained in:
parent
b262272a23
commit
55b76cde92
2 changed files with 5 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.18-rc.8",
|
"version": "12.119.0-calc.18-rc.9",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -53,7 +53,7 @@ useTooltip(buttonRef, async (showing) => {
|
||||||
}, {}, 'closed');
|
}, {}, 'closed');
|
||||||
});
|
});
|
||||||
|
|
||||||
const renote = (viaKeyboard = false, ev?: MouseEvent) => {
|
const renote = async (viaKeyboard = false, ev?: MouseEvent) => {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
let buttonActions = [{
|
let buttonActions = [{
|
||||||
text: i18n.ts.renote,
|
text: i18n.ts.renote,
|
||||||
|
@ -72,13 +72,12 @@ const renote = (viaKeyboard = false, ev?: MouseEvent) => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}];
|
}];
|
||||||
let users;
|
const renotes = await os.api('notes/renotes', {
|
||||||
os.api('notes/renotes', {
|
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
limit: 11,
|
limit: 11,
|
||||||
}).then((renotes) => {
|
|
||||||
users = renotes.map(x => x.user);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const users = renotes.map(x => x.user);
|
||||||
const hasRenotedBefore = users.includes($i);
|
const hasRenotedBefore = users.includes($i);
|
||||||
|
|
||||||
if (hasRenotedBefore) {
|
if (hasRenotedBefore) {
|
||||||
|
|
Loading…
Reference in a new issue