From: mahanstreamer <84676642+mahanstreamer@users.noreply.github.com> Date: Fri, 29 Oct 2021 01:58:49 +0000 (-0400) Subject: Update post-form.tsx X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/save/static/%7BprofileRss%7D?a=commitdiff_plain;h=25bfa841341ba356d80ffb7507ed4e46d7cc2fa6;p=lemmy-ui.git Update post-form.tsx --- diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 40e8e7b..133af94 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -20,7 +20,7 @@ import { i18n } from "../../i18next"; import { PostFormParams } from "../../interfaces"; import { UserService, WebSocketService } from "../../services"; import { - archiveUrl, + archiveTodayUrl, authField, capitalizeFirstLetter, choicesConfig, @@ -29,6 +29,7 @@ import { debounce, fetchCommunities, getSiteMetadata, + ghostArchiveUrl, isBrowser, isImage, pictrsDeleteToast, @@ -36,6 +37,7 @@ import { toast, validTitle, validURL, + webArchiveUrl, wsClient, wsJsonToRes, wsSubscribe, @@ -211,15 +213,35 @@ export class PostForm extends Component { /> {this.state.postForm.url && validURL(this.state.postForm.url) && ( +
- {i18n.t("archive_link")} + archive.org {i18n.t("archive_link")} + + ghostarchive.org {i18n.t("archive_link")} + + + archive.today {i18n.t("archive_link")} + +
)} {this.state.imageLoading && } {isImage(this.state.postForm.url) && (