rate limit comments
This commit is contained in:
parent
84cafd643f
commit
c27baa89fe
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def get_comment(comment_id: str) -> dict:
|
||||||
def create_comment_id(comment: str, channel_id: str, timestamp: int):
|
def create_comment_id(comment: str, channel_id: str, timestamp: int):
|
||||||
# We convert the timestamp from seconds into minutes
|
# We convert the timestamp from seconds into minutes
|
||||||
# to prevent spammers from commenting the same BS everywhere.
|
# to prevent spammers from commenting the same BS everywhere.
|
||||||
nearest_minute = str(math.floor(timestamp))
|
nearest_minute = str(math.floor(timestamp / 60))
|
||||||
|
|
||||||
# don't use claim_id for the comment_id anymore so comments
|
# don't use claim_id for the comment_id anymore so comments
|
||||||
# are not unique to just one claim
|
# are not unique to just one claim
|
||||||
|
|
Loading…
Reference in a new issue