diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-02-28 21:35:53 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-02-28 21:35:53 +0100 |
commit | 2267eee356a3d2b8ebb20892c5182b6f8169403e (patch) | |
tree | 015d70b4b633fadf70cab9d0a0b0fbd55e6456ae /app/models/concerns/status_threading_concern.rb | |
parent | 76ed481aa7b67d624675cdaa85bac583853fd24d (diff) | |
parent | ee7d79c0ce411ff7754e3ac31dbf27cb9e298f73 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/concerns/status_threading_concern.rb')
-rw-r--r-- | app/models/concerns/status_threading_concern.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/status_threading_concern.rb b/app/models/concerns/status_threading_concern.rb index b9c800c2a..15eb695cd 100644 --- a/app/models/concerns/status_threading_concern.rb +++ b/app/models/concerns/status_threading_concern.rb @@ -11,6 +11,10 @@ module StatusThreadingConcern find_statuses_from_tree_path(descendant_ids(limit, max_child_id, since_child_id, depth), account, promote: true) end + def self_replies(limit) + account.statuses.where(in_reply_to_id: id, visibility: [:public, :unlisted]).reorder(id: :asc).limit(limit) + end + private def ancestor_ids(limit) |