about summary refs log tree commit diff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-02-28 22:02:36 +0100
committerGitHub <noreply@github.com>2019-02-28 22:02:36 +0100
commitb969b150e8f095dc91c19c7381923c2c19edb968 (patch)
tree015d70b4b633fadf70cab9d0a0b0fbd55e6456ae /app/models/concerns
parent76ed481aa7b67d624675cdaa85bac583853fd24d (diff)
parent2267eee356a3d2b8ebb20892c5182b6f8169403e (diff)
Merge pull request #932 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/status_threading_concern.rb4
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)