Skip to content

Commit

Permalink
Don't ignore TikTok comments with missing author_pin
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Nov 25, 2024
1 parent da8328e commit bfe3075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasources/tiktok_comments/search_tiktok_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def map_item(item):
"post_url": item["share_info"]["url"].split(".html")[0],
"post_body": item["share_info"]["title"],
"comment_url": item["share_info"]["url"],
"is_liked_by_post_author": "yes" if bool(item["author_pin"]) else "no",
"is_liked_by_post_author": "yes" if bool(item.get("author_pin")) else "no",
"is_sticky": "yes" if bool(item["stick_position"]) else "no",
"is_comment_on_comment": "no" if bool(item["reply_id"] == "0") else "yes",
"language_guess": item["comment_language"]
Expand Down

0 comments on commit bfe3075

Please sign in to comment.