import { PostFormParams } from "../../interfaces";
import { UserService, WebSocketService } from "../../services";
import {
- archiveUrl,
+ archiveTodayUrl,
authField,
capitalizeFirstLetter,
choicesConfig,
debounce,
fetchCommunities,
getSiteMetadata,
+ ghostArchiveUrl,
isBrowser,
isImage,
pictrsDeleteToast,
toast,
validTitle,
validURL,
+ webArchiveUrl,
wsClient,
wsJsonToRes,
wsSubscribe,
/>
</form>
{this.state.postForm.url && validURL(this.state.postForm.url) && (
+ <div>
<a
- href={`${archiveUrl}/?run=1&url=${encodeURIComponent(
+ href={`${webArchiveUrl}/save/${encodeURIComponent(
this.state.postForm.url
)}`}
class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
rel="noopener"
>
- {i18n.t("archive_link")}
+ archive.org {i18n.t("archive_link")}
</a>
+ <a
+ href={`${ghostArchiveUrl}/search?term=${encodeURIComponent(
+ this.state.postForm.url
+ )}`}
+ class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
+ rel="noopener"
+ >
+ ghostarchive.org {i18n.t("archive_link")}
+ </a>
+ <a
+ href={`${archiveTodayUrl}/?run=1&url=${encodeURIComponent(
+ this.state.postForm.url
+ )}`}
+ class="mr-2 d-inline-block float-right text-muted small font-weight-bold"
+ rel="noopener"
+ >
+ archive.today {i18n.t("archive_link")}
+ </a>
+ </div>
)}
{this.state.imageLoading && <Spinner />}
{isImage(this.state.postForm.url) && (