Add follow request banner on account header (#20785)
* Add requested_by to relationship maps * Display whether an account has requested to follow you on their profile
This commit is contained in:
parent
7a3c6bb888
commit
70415714f1
10 changed files with 127 additions and 4 deletions
|
@ -658,6 +658,12 @@ RSpec.describe Account, type: :model do
|
|||
end
|
||||
end
|
||||
|
||||
describe '.requested_by_map' do
|
||||
it 'returns an hash' do
|
||||
expect(Account.requested_by_map([], 1)).to be_a Hash
|
||||
end
|
||||
end
|
||||
|
||||
describe 'MENTION_RE' do
|
||||
subject { Account::MENTION_RE }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue