mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-26 03:50:36 +00:00
[BUG FIX] Don't append host part twice to remote interact URI
This commit is contained in:
parent
b2e7664339
commit
703328601c
1 changed files with 1 additions and 10 deletions
|
@ -134,16 +134,7 @@ pub fn follow_not_connected(
|
|||
if let Some(remote_form) = remote_form {
|
||||
if let Some(uri) = User::fetch_remote_interact_uri(&remote_form)
|
||||
.ok()
|
||||
.and_then(|uri| {
|
||||
Some(uri.replace(
|
||||
"{uri}",
|
||||
&format!(
|
||||
"{}@{}",
|
||||
target.fqn,
|
||||
target.get_instance(&conn).ok()?.public_domain
|
||||
),
|
||||
))
|
||||
})
|
||||
.and_then(|uri| Some(uri.replace("{uri}", &target.acct_authority(&conn).ok()?)))
|
||||
{
|
||||
Ok(Redirect::to(uri).into())
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue