diff options
author | Felix Ableitner <me@nutomic.com> | 2020-06-08 19:52:32 +0200 |
---|---|---|
committer | Felix Ableitner <me@nutomic.com> | 2020-06-08 19:52:32 +0200 |
commit | e583e45d9a2221b3ed2a743cfa172abcd2a1d6a0 (patch) | |
tree | 76a2625d41639e125bbc2b1511209645e9997bbb /ui/src/components/comment-form.tsx | |
parent | a13e9fe3959e07f901ba0647dfd7f749865a900d (diff) |
Use pictrs instead of pictshare
Diffstat (limited to 'ui/src/components/comment-form.tsx')
-rw-r--r-- | ui/src/components/comment-form.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx index 5239eb2c..7abab752 100644 --- a/ui/src/components/comment-form.tsx +++ b/ui/src/components/comment-form.tsx @@ -304,7 +304,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> { file = event; } - const imageUploadUrl = `/pictshare/api/upload.php`; + const imageUploadUrl = `/pictrs/image`; const formData = new FormData(); formData.append('file', file); @@ -317,7 +317,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> { }) .then(res => res.json()) .then(res => { - let url = `${window.location.origin}/pictshare/${res.url}`; + let url = `${window.location.origin}/pictrs/${res.url}`; let imageMarkdown = res.filetype == 'mp4' ? `[vid](${url}/raw)` : `![](${url})`; let content = i.state.commentForm.content; |