Added cashtag support for statuses

• Added:
- cashtag support for statuses

Ref: https://github.com/tootsuite/mastodon/commit/e23931b2550e8ab48d4d6212e50d825293f5b014
This commit is contained in:
mgabdev
2020-10-30 14:01:55 -05:00
parent 9f712198dc
commit 6db1cf421b
6 changed files with 67 additions and 18 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
class ProcessHashtagsService < BaseService
def call(status, tags = [])
tags = Extractor.extract_hashtags(status.text) if status.local?
tags = Extractor.extract_hashtags(status.text) + Extractor.extract_cashtags(status.text) if status.local?
records = []
tags.map { |str| str.mb_chars.downcase }.uniq(&:to_s).each do |name|