The tag property can also include Emoji objects. Limit to Hashtag.

various-fixes
Alain St-Denis 2023-02-21 16:25:54 -05:00
rodzic db0b545f24
commit 0688e83240
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -825,7 +825,7 @@ class Note(Object, RawContentMixin):
# Skip when markdown
return
hrefs = [tag.href.lower() for tag in self.tag_objects]
hrefs = [tag.href.lower() for tag in self.tag_objects if isinstance(tag, Hashtag)]
# noinspection PyUnusedLocal
def remove_tag_links(attrs, new=False):
# Hashtag object hrefs