2023-03-17 21:29:49 +01:00
|
|
|
|
---
|
2023-03-18 02:11:18 +01:00
|
|
|
|
/*!
|
|
|
|
|
* © 2023 Nikita Karamov
|
|
|
|
|
* Licensed under AGPL v3 or later
|
|
|
|
|
*/
|
2023-03-17 22:53:25 +01:00
|
|
|
|
import InstanceSelect from "../components/instance-select.astro";
|
2023-03-17 21:29:49 +01:00
|
|
|
|
import "../styles/main.scss";
|
2023-03-18 00:34:18 +01:00
|
|
|
|
|
|
|
|
|
const searchParameters = new URL(Astro.request.url).searchParams;
|
|
|
|
|
const prefilledText = searchParameters.get("text");
|
|
|
|
|
const prefilledInstance = searchParameters.get("instance");
|
2023-03-17 21:29:49 +01:00
|
|
|
|
---
|
|
|
|
|
|
2023-03-18 02:11:18 +01:00
|
|
|
|
<!DOCTYPE html>
|
2021-08-14 18:33:06 +02:00
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
2023-03-17 23:53:58 +01:00
|
|
|
|
<meta charset="utf-8" />
|
2023-03-17 14:06:30 +01:00
|
|
|
|
<meta
|
|
|
|
|
name="viewport"
|
|
|
|
|
content="width=device-width, initial-scale=1.0"
|
|
|
|
|
/>
|
2023-03-16 15:20:56 +01:00
|
|
|
|
<title>
|
|
|
|
|
Share₂Fedi — an instance-agnostic share page for the Fediverse
|
|
|
|
|
</title>
|
2021-08-28 16:06:57 +02:00
|
|
|
|
<meta
|
|
|
|
|
name="description"
|
2023-03-17 22:53:25 +01:00
|
|
|
|
content="Share₂Fedi is a share page for Mastodon, Pleroma, and GNU Social. Type in your post text and the instance URL and click ‘Publish!’"
|
2021-08-28 16:06:57 +02:00
|
|
|
|
/>
|
2023-03-17 14:06:30 +01:00
|
|
|
|
<link
|
|
|
|
|
rel="canonical"
|
|
|
|
|
href="https://s2f.kytta.dev/"
|
|
|
|
|
/>
|
2021-08-14 18:33:06 +02:00
|
|
|
|
|
2023-03-18 00:36:55 +01:00
|
|
|
|
<script src="../count.js"></script>
|
2023-03-17 14:06:30 +01:00
|
|
|
|
<link
|
|
|
|
|
rel="icon"
|
|
|
|
|
href="/favicon.ico"
|
|
|
|
|
sizes="any"
|
|
|
|
|
/>
|
|
|
|
|
<link
|
|
|
|
|
rel="icon"
|
|
|
|
|
href="/icon.svg"
|
|
|
|
|
type="image/svg+xml"
|
|
|
|
|
/>
|
|
|
|
|
<link
|
|
|
|
|
rel="apple-touch-icon"
|
|
|
|
|
href="/apple-touch-icon.png"
|
|
|
|
|
/>
|
|
|
|
|
<link
|
|
|
|
|
rel="manifest"
|
|
|
|
|
href="/manifest.webmanifest"
|
|
|
|
|
/>
|
2023-03-17 21:29:49 +01:00
|
|
|
|
|
|
|
|
|
<meta
|
|
|
|
|
name="generator"
|
|
|
|
|
content="{Astro.generator}"
|
|
|
|
|
/>
|
2021-08-14 18:33:06 +02:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header>
|
2023-03-17 14:06:30 +01:00
|
|
|
|
<img
|
|
|
|
|
src="/logo.svg"
|
|
|
|
|
alt="Share2Fedi"
|
|
|
|
|
width="195"
|
|
|
|
|
height="60"
|
|
|
|
|
/>
|
2021-08-14 18:33:06 +02:00
|
|
|
|
</header>
|
|
|
|
|
<main>
|
2023-03-17 14:06:30 +01:00
|
|
|
|
<form
|
|
|
|
|
id="js-s2f-form"
|
|
|
|
|
action="/api/share"
|
|
|
|
|
method="POST"
|
|
|
|
|
>
|
2023-03-16 14:36:07 +01:00
|
|
|
|
<label>
|
|
|
|
|
Post text
|
2021-08-14 18:33:06 +02:00
|
|
|
|
<textarea
|
|
|
|
|
name="text"
|
|
|
|
|
id="text"
|
2023-03-16 14:36:07 +01:00
|
|
|
|
rows="7"
|
2021-08-14 18:33:06 +02:00
|
|
|
|
placeholder="What's on your mind?"
|
|
|
|
|
required
|
2023-03-18 00:34:18 +01:00
|
|
|
|
>{prefilledText}</textarea
|
|
|
|
|
>
|
2023-03-16 14:36:07 +01:00
|
|
|
|
</label>
|
|
|
|
|
|
2023-03-18 00:34:18 +01:00
|
|
|
|
<InstanceSelect prefilledInstance={prefilledInstance} />
|
2023-03-16 14:36:07 +01:00
|
|
|
|
|
2023-03-17 14:06:30 +01:00
|
|
|
|
<input
|
|
|
|
|
type="submit"
|
|
|
|
|
value="Publish"
|
|
|
|
|
/>
|
2021-08-14 18:33:06 +02:00
|
|
|
|
</form>
|
|
|
|
|
</main>
|
2023-03-16 19:54:33 +01:00
|
|
|
|
<aside>
|
|
|
|
|
<p>
|
|
|
|
|
Share₂Fedi is an instance-agnostic share page for
|
|
|
|
|
<a href="https://en.wikipedia.org/wiki/Fediverse">the Fediverse</a>.
|
|
|
|
|
With it, you can post to various federated platforms from a single page.
|
|
|
|
|
</p>
|
|
|
|
|
<p><b>Supported projects:</b></p>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Mastodon</li>
|
2023-03-17 14:08:08 +01:00
|
|
|
|
<li>
|
|
|
|
|
Pleroma <small><b>(new!)</b></small>
|
|
|
|
|
</li>
|
2023-03-16 19:54:33 +01:00
|
|
|
|
<li>
|
|
|
|
|
GNU Social <small><b>(new!)</b></small>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<p>
|
|
|
|
|
Share₂Fedi is developed and maintained by
|
|
|
|
|
<a href="https://www.kytta.dev/">Nikita Karamov</a>. Source code is
|
|
|
|
|
<a href="https://github.com/kytta/share2fedi">on GitHub</a>. Hosted with
|
|
|
|
|
<a href="https://vercel.com">Vercel</a>.
|
|
|
|
|
<a href="https://stats.uptimerobot.com/QOXj3uXPDX">Status page</a>.
|
|
|
|
|
</p>
|
|
|
|
|
<details>
|
|
|
|
|
<summary>Licence</summary>
|
|
|
|
|
<p>
|
|
|
|
|
Share₂Fedi is free software: you can redistribute it and/or modify it
|
|
|
|
|
under the terms of the GNU Affero General Public License as published
|
|
|
|
|
by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
Share₂Fedi is distributed in the hope that it will be useful, but
|
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
Affero General Public License for more details.
|
|
|
|
|
</p>
|
|
|
|
|
</details>
|
2023-03-16 17:15:03 +01:00
|
|
|
|
<details>
|
|
|
|
|
<summary>Privacy Notice</summary>
|
|
|
|
|
<p>
|
|
|
|
|
Share₂Fedi uses GoatCounter to collect usage information.
|
|
|
|
|
<a href="https://share2fedi.goatcounter.com/">
|
|
|
|
|
The usage data is public.
|
|
|
|
|
</a>
|
|
|
|
|
The following information gets collected:
|
|
|
|
|
</p>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><code>User-Agent</code> header</li>
|
|
|
|
|
<li>Screen size</li>
|
|
|
|
|
<li>A hash of the IP address, User-Agent, and random number</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<p>
|
|
|
|
|
This data is kept for the maximum of 90 days. None of this information
|
|
|
|
|
is shared with third parties. See
|
|
|
|
|
<a href="https://www.goatcounter.com/help/privacy"
|
|
|
|
|
>GoatCounter’s privacy policy</a
|
|
|
|
|
>
|
|
|
|
|
for more information.
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
s2f.kytta.dev is hosted on Vercel. Vercel processes IP addresses,
|
|
|
|
|
system configuration information, and other information about traffic
|
|
|
|
|
to and from s2f.kytta.dev. Vercel does not store this information nor
|
|
|
|
|
does it get shared with third parties. See
|
|
|
|
|
<a href="https://vercel.com/legal/privacy-policy#customers"
|
|
|
|
|
>Vercel's privacy policy</a
|
|
|
|
|
>
|
|
|
|
|
for more information.
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
When you click the ‘Publish’ button, you’ll get redirected to a
|
|
|
|
|
Fediverse instance you’ve specified. It may process and/or store your
|
|
|
|
|
data. Please refer to the privacy policy of the respective instance.
|
|
|
|
|
</p>
|
|
|
|
|
</details>
|
2023-03-16 19:54:33 +01:00
|
|
|
|
</aside>
|
2021-08-14 18:33:06 +02:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|