]> cat aescling's git repositories - mastodon.git/commit
Match keyword mute filter on hashtags. #208.
authorDavid Yip <yipdw@member.fsf.org>
Wed, 15 Nov 2017 23:26:29 +0000 (17:26 -0600)
committerDavid Yip <yipdw@member.fsf.org>
Thu, 16 Nov 2017 00:12:29 +0000 (18:12 -0600)
commitcb4ef24ac9d48e70648135f106fdc275dedf14fc
treee27e76ca2152cd47cf426a7c7daf6f68bdca54c8
parent431503bae2dc6e12bdade7d5d20f707112c2f7c2
Match keyword mute filter on hashtags.  #208.

It is reasonable to expect someone to enter #foo to mute hashtag #foo.
However, tags are recorded on statuses without the preceding #.
To adjust for this, we build a separate tag matcher and use
Tag::HASHTAG_RE to extract a hashtag from the hashtag syntax.
app/lib/feed_manager.rb
app/models/glitch/keyword_mute.rb
spec/models/glitch/keyword_mute_spec.rb