Add abilityto add oneself to lists (#12271)
* Add ability to add oneself to lists * Change search results to include oneself when searching through followers * Mark follow relation as optional in ListAccount
This commit is contained in:
parent
1a12943924
commit
65e13cfacf
5 changed files with 14 additions and 7 deletions
|
@ -127,7 +127,7 @@ class AccountSearchService < BaseService
|
|||
end
|
||||
|
||||
def following_ids
|
||||
@following_ids ||= account.active_relationships.pluck(:target_account_id)
|
||||
@following_ids ||= account.active_relationships.pluck(:target_account_id) + [account.id]
|
||||
end
|
||||
|
||||
def limit_for_non_exact_results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue