fix/fix emoji count typeerror

This commit is contained in:
SouthFox 2022-09-19 23:15:14 +08:00
parent 0f7568b4ab
commit ca558d57e9

View file

@ -120,7 +120,7 @@ def archive_toot(url):
count = content.count(counter) count = content.count(counter)
if not is_reblog: if not is_reblog:
data=Emoji.query.filter_by(shortcode=shortcode).first() data=Emoji.query.filter_by(shortcode=shortcode, acct=acct).first()
if data is None: if data is None:
emoji_data = Emoji(shortcode=shortcode, emoji_data = Emoji(shortcode=shortcode,
acct=acct, acct=acct,