diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-02-12 03:52:11 +0000 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:21 -0500 |
commit | d6738df0833dcbead2e6d80e137f5521f75dc464 (patch) | |
tree | 601dd0ef3f8895b164c52c67b1e1e0f26f691550 /app/models | |
parent | 1636a4e8ae8cfd0024f58c56521622a8609f12c4 (diff) |
handle no-replies flag
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 29e8c7374..ce642f9bf 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -511,6 +511,10 @@ class Status < ApplicationRecord '👁' end + def marked_no_replies? + /(:ms_dont_at_me:|(don't|do not|no) ((at|@|mention) me)|reply|replies)/.match?(spoiler_text) + end + private def update_status_stat!(attrs) |