diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-10-25 20:28:51 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-10-25 20:28:51 +0200 |
commit | e855df149bd2f19729af48cd5f452fa3972273f8 (patch) | |
tree | 4d9dab4fd4568f67b07642db61a2f382e8b1dcc0 /app/models/concerns | |
parent | c647fa99cab9b9db81d36223cf2c2c27e065b648 (diff) | |
parent | 5ba46952af87e42a64962a34f7ec43bc710bdcaf (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `.env.production.sample`: Upstream added new configuration options, uncommented by default. Commented them. - `Gemfile.lock`: Upstream updated dependencies textually close to glitch-soc-specific dependencies. Updated those upstream dependencies.
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/account_interactions.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/account_interactions.rb b/app/models/concerns/account_interactions.rb index 8f19176a7..ad1665dc4 100644 --- a/app/models/concerns/account_interactions.rb +++ b/app/models/concerns/account_interactions.rb @@ -195,6 +195,10 @@ module AccountInteractions !following_anyone? end + def followed_by?(other_account) + other_account.following?(self) + end + def blocking?(other_account) block_relationships.where(target_account: other_account).exists? end |