From 47a7d1fe62de834a9371cb660005868871c74481 Mon Sep 17 00:00:00 2001 From: Waldo Jaquith Date: Sat, 6 Jul 2024 16:54:47 -0400 Subject: [PATCH] Review the last 500, not 50, posts Boy, that was a lousy typo. --- post.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.sh b/post.sh index bf2afdb..ec995ee 100755 --- a/post.sh +++ b/post.sh @@ -25,7 +25,7 @@ function select_entry { # See if an entry has been used in the past 500 posts function is_recent { local entry_hash=$(echo -n "$1" | md5sum | cut -d ' ' -f 1) - if tail -n 50 post_history.txt | grep -q "$entry_hash"; then + if tail -n 500 post_history.txt | grep -q "$entry_hash"; then return 0 # 0 = true, recent else return 1 # 1 = false, not recent