* Fix #2027 - Accept own ID for remote follow with and without preceding @ Fix #2177 - Omit leading "acct:" in remote follow redirect template expansion * Fix test
This commit is contained in:
parent
a822f7a05a
commit
65f9db73b0
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ class RemoteFollow
|
|||
attr_accessor :acct, :addressable_template
|
||||
|
||||
def initialize(attrs = {})
|
||||
@acct = attrs[:acct].strip unless attrs[:acct].nil?
|
||||
@acct = attrs[:acct].gsub(/\A@/, '').strip unless attrs[:acct].nil?
|
||||
end
|
||||
|
||||
def valid?
|
||||
|
@ -15,7 +15,7 @@ class RemoteFollow
|
|||
end
|
||||
|
||||
def subscribe_address_for(account)
|
||||
addressable_template.expand(uri: account.to_webfinger_s).to_s
|
||||
addressable_template.expand(uri: account.local_username_and_domain).to_s
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue