From d6738df0833dcbead2e6d80e137f5521f75dc464 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 12 Feb 2019 03:52:11 +0000 Subject: handle no-replies flag --- app/models/status.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/status.rb') 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) -- cgit