23 lines
614 B
Plaintext
23 lines
614 B
Plaintext
---
|
|
/*!
|
|
* This file is part of Share₂Fedi
|
|
* https://github.com/kytta/share2fedi
|
|
*
|
|
* SPDX-FileCopyrightText: © 2023 Nikita Karamov <me@kytta.dev>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import Layout from "@layouts/layout.astro";
|
|
import Form from "@components/form.astro";
|
|
|
|
const searchParameters = new URL(Astro.request.url).searchParams;
|
|
const prefilledText = searchParameters.get("text");
|
|
const prefilledInstance = searchParameters.get("instance");
|
|
---
|
|
|
|
<Layout title="Share₂Fedi — an instance-agnostic share page for the Fediverse">
|
|
<Form
|
|
{prefilledText}
|
|
{prefilledInstance}
|
|
/>
|
|
</Layout>
|