Delete user.terse_url
This commit is contained in:
parent
f11a481ed7
commit
ed6df7d1bf
2 changed files with 2 additions and 7 deletions
|
|
@ -259,14 +259,9 @@ class User
|
||||||
aspect(:name => "Work")
|
aspect(:name => "Work")
|
||||||
end
|
end
|
||||||
|
|
||||||
def terse_url
|
|
||||||
terse = APP_CONFIG[:pod_url].gsub(/(https?:|www\.)\/\//, '')
|
|
||||||
terse = terse.chop! if terse[-1, 1] == '/'
|
|
||||||
terse
|
|
||||||
end
|
|
||||||
|
|
||||||
def diaspora_handle
|
def diaspora_handle
|
||||||
"#{self.username}@#{self.terse_url}"
|
"#{self.username}@#{APP_CONFIG[:terse_pod_url]}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def downcase_username
|
def downcase_username
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ describe Person do
|
||||||
|
|
||||||
context 'remote people' do
|
context 'remote people' do
|
||||||
it 'stores the diaspora_handle in the database' do
|
it 'stores the diaspora_handle in the database' do
|
||||||
@person.diaspora_handle.include?(@user.terse_url).should be false
|
@person.diaspora_handle.include?(APP_CONFIG[:terse_pod_url]).should be false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue