mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
fix
This commit is contained in:
parent
09d55b84f9
commit
e70d5a775c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "calckey",
|
||||
"version": "12.119.0-calc.18-rc.8",
|
||||
"version": "12.119.0-calc.18-rc.9",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -53,7 +53,7 @@ useTooltip(buttonRef, async (showing) => {
|
||||
}, {}, 'closed');
|
||||
});
|
||||
|
||||
const renote = (viaKeyboard = false, ev?: MouseEvent) => {
|
||||
const renote = async (viaKeyboard = false, ev?: MouseEvent) => {
|
||||
pleaseLogin();
|
||||
let buttonActions = [{
|
||||
text: i18n.ts.renote,
|
||||
@ -72,13 +72,12 @@ const renote = (viaKeyboard = false, ev?: MouseEvent) => {
|
||||
}
|
||||
},
|
||||
}];
|
||||
let users;
|
||||
os.api('notes/renotes', {
|
||||
const renotes = await os.api('notes/renotes', {
|
||||
noteId: props.note.id,
|
||||
limit: 11,
|
||||
}).then((renotes) => {
|
||||
users = renotes.map(x => x.user);
|
||||
});
|
||||
|
||||
const users = renotes.map(x => x.user);
|
||||
const hasRenotedBefore = users.includes($i);
|
||||
|
||||
if (hasRenotedBefore) {
|
||||
|
Loading…
Reference in New Issue
Block a user