mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
14 lines
326 B
TypeScript
14 lines
326 B
TypeScript
|
|
import type { Mastodon } from "megalodon";
|
||
|
|
|
||
|
|
export const useExtendedDescription = async (client: Mastodon | null) => {
|
||
|
|
if (!client) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
return (await client.client.get("/api/v1/instance/extended_description"))
|
||
|
|
.data as {
|
||
|
|
updated_at: string;
|
||
|
|
content: string;
|
||
|
|
};
|
||
|
|
};
|