From: Eugen Rochko Date: Mon, 2 Jan 2017 11:19:02 +0000 (+0100) Subject: Fix uri expansion during remote follow X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=75122e162d7b933d34c6b694c6c5a0b2533f547f;p=mastodon.git Fix uri expansion during remote follow --- diff --git a/app/controllers/remote_follow_controller.rb b/app/controllers/remote_follow_controller.rb index 5e923c88f..7d4bfe6ce 100644 --- a/app/controllers/remote_follow_controller.rb +++ b/app/controllers/remote_follow_controller.rb @@ -22,7 +22,7 @@ class RemoteFollowController < ApplicationController render(:new) && return end - redirect_to Addressable::Template.new(redirect_url_link.template).expand(uri: "acct:#{@account.username}@#{Rails.configuration.x.local_domain}").to_s + redirect_to Addressable::Template.new(redirect_url_link.template).expand(uri: "#{@account.username}@#{Rails.configuration.x.local_domain}").to_s else render :new end