[chore] Disable Move API endpoints for now until Move is fully implemented in the backend (#2650)

* [chore] Disable Move API endpoints for now until Move is fully implemented in the backend

* disable other form fields

* clarify that moving to GtS also isn't implemented yet
This commit is contained in:
tobi 2024-02-17 17:03:44 +01:00 committed by GitHub
parent d3f35e8eba
commit 83a4adbd95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View file

@ -31,6 +31,8 @@
// //
// Move your account to another account. // Move your account to another account.
// //
// NOT IMPLEMENTED YET!
//
// --- // ---
// tags: // tags:
// - accounts // - accounts

View file

@ -113,5 +113,5 @@ func (m *Module) Route(attachHandler func(method string, path string, f ...gin.H
// migration handlers // migration handlers
attachHandler(http.MethodPost, AliasPath, m.AccountAliasPOSTHandler) attachHandler(http.MethodPost, AliasPath, m.AccountAliasPOSTHandler)
attachHandler(http.MethodPost, MovePath, m.AccountMovePOSTHandler) // attachHandler(http.MethodPost, MovePath, m.AccountMovePOSTHandler) // todo: enable this only when Move is completed
} }

View file

@ -46,6 +46,10 @@ function UserMigrationForm({ data: profile }) {
return ( return (
<> <>
<h2>Account Migration Settings</h2> <h2>Account Migration Settings</h2>
<div className="info">
<i className="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
<b>Moving your account to another instance, or moving an account from another instance to your account, isn't implemented yet! <a href="https://github.com/superseriousbusiness/gotosocial/issues/130" target="_blank" rel="noopener noreferrer">See here for progress</a>.</b>
</div>
<p> <p>
The following settings allow you to <strong>alias</strong> your account to another account The following settings allow you to <strong>alias</strong> your account to another account
elsewhere, and to <strong>move</strong> your followers and following lists to another account. elsewhere, and to <strong>move</strong> your followers and following lists to another account.
@ -186,18 +190,20 @@ function MoveForm({ data: profile }) {
</a> </a>
</div> </div>
<TextInput <TextInput
disabled={true}
field={form.movedToURI} field={form.movedToURI}
label="Move target URI" label="Move target URI"
placeholder="https://example.org/users/my_new_account" placeholder="https://example.org/users/my_new_account"
/> />
<TextInput <TextInput
disabled={true}
type="password" type="password"
name="password" name="password"
field={form.password} field={form.password}
label="Confirm account password" label="Confirm account password"
/> />
<MutationButton <MutationButton
disabled={false} disabled={true}
label="Confirm account move" label="Confirm account move"
result={result} result={result}
/> />