Skip to content

Commit

Permalink
fix, logic was inverted from correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Bachtel committed Jan 5, 2025
1 parent 45b4ede commit 3335885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bsky_prolific_followers/listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def cache_save_profile(did, profile)

# cache_fresh?(did) - determine whether a cached profile DID is fresh enough (has been cached in the last hour)
def cache_fresh?(did)
return true if @cache_expire # if we are ignoring cache times, then the entry is fresh enough
return true unless @cache_expire # if we are ignoring cache times, then the entry is fresh enough

((DateTime.now - DateTime.iso8601(cache_get_profile(did)["cachedAt"])) * 86_400) < 3600
end
Expand Down

0 comments on commit 3335885

Please sign in to comment.