minor cleanup
All checks were successful
/ depoly (push) Successful in 1m20s

This commit is contained in:
thislight 2024-11-09 16:38:41 +08:00
parent 29eaf1a02b
commit cd1ae210e7
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
4 changed files with 2 additions and 108 deletions

View file

@ -1,6 +1,5 @@
import {
Component,
For,
createSignal,
ErrorBoundary,
type Ref,
@ -20,7 +19,6 @@ import RegularToot, {
findRootToot,
} from "./RegularToot";
import cardStyle from "../material/cards.module.css";
import type { ReactiveMap } from "@solid-primitives/map";
import type { ThreadNode } from "../masto/timelines";
function positionTootInThread(index: number, threadLength: number) {
@ -73,7 +71,7 @@ const TootList: Component<{
});
}
/* const result = reblogged
const result = reblogged
? await client.v1.statuses.$select(status.id).unreblog()
: (await client.v1.statuses.$select(status.id).reblog()).reblog!;
@ -84,7 +82,7 @@ const TootList: Component<{
});
} else {
props.onChangeToot(status.id, result);
} */
}
};
const toggleFavourite = async (status: mastodon.v1.Status) => {