diff options
author | Andrew Godwin | 2022-11-29 09:44:22 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-29 09:44:37 -0700 |
commit | 8139ccffdb6450f4413eff4a9d880b6741c7dd01 (patch) | |
tree | a114cb6d56cc57dfcaf00327fa80071173f39dd2 /activities | |
parent | 17107618a00cadf93ac4803910509e793a80774d (diff) | |
download | takahe-8139ccffdb6450f4413eff4a9d880b6741c7dd01.tar.gz takahe-8139ccffdb6450f4413eff4a9d880b6741c7dd01.tar.bz2 takahe-8139ccffdb6450f4413eff4a9d880b6741c7dd01.zip |
Fix hashtag extraction
Diffstat (limited to 'activities')
-rw-r--r-- | activities/models/hashtag.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activities/models/hashtag.py b/activities/models/hashtag.py index 9cfb21d..b7f0832 100644 --- a/activities/models/hashtag.py +++ b/activities/models/hashtag.py @@ -176,7 +176,7 @@ class Hashtag(StatorModel): leading '#'. """ hashtag_hits = cls.hashtag_regex.findall(strip_html(content)) - hashtags = sorted({tag[1].lower() for tag in hashtag_hits}) + hashtags = sorted({tag.lower() for tag in hashtag_hits}) return list(hashtags) @classmethod |