Skip to content

Commit

Permalink
Review the last 500, not 50, posts
Browse files Browse the repository at this point in the history
Boy, that was a lousy typo.
  • Loading branch information
waldoj committed Jul 6, 2024
1 parent d9daeb1 commit 47a7d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47a7d1f

Please sign in to comment.