mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] Expose move endpoint again, small settings panel fixes (#2752)
This commit is contained in:
@@ -154,6 +154,17 @@ func (p *Processor) MoveSelf(
|
||||
}
|
||||
}
|
||||
|
||||
// If originAcct has already moved, ensure
|
||||
// this move reattempt is to the same account.
|
||||
if originAcct.IsMoving() &&
|
||||
originAcct.MovedToURI != targetAcct.URI {
|
||||
err := fmt.Errorf(
|
||||
"your account is already Moving or has Moved to %s; you cannot also Move to %s",
|
||||
originAcct.MovedToURI, targetAcct.URI,
|
||||
)
|
||||
return gtserror.NewErrorUnprocessableEntity(err, err.Error())
|
||||
}
|
||||
|
||||
// Target account MUST be aliased to this
|
||||
// account for this to be a valid Move.
|
||||
if !slices.Contains(targetAcct.AlsoKnownAsURIs, originAcct.URI) {
|
||||
|
Reference in New Issue
Block a user