diff --git a/files/classes/submission.py b/files/classes/submission.py index f5e75ea414..87c32a7e60 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -369,3 +369,8 @@ class Submission(Base): @lazy def active_flags(self, v): return len(self.filtered_flags(v)) + + @property + @lazy + def num_subscribers(self): + return g.db.query(Subscription).filter_by(submission_id=self.id).count() diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index 1ebb5bd194..a34bf58705 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -17,8 +17,8 @@ {% if v %} - - + + diff --git a/files/templates/post_actions_mobile.html b/files/templates/post_actions_mobile.html index d50f05d3fc..6ceb1767d6 100644 --- a/files/templates/post_actions_mobile.html +++ b/files/templates/post_actions_mobile.html @@ -20,9 +20,9 @@ {%- endif %} - + - +