Age matching fix

This commit is contained in:
Mr. Stallion 2020-07-01 09:33:29 -05:00
parent e3dd2ffe99
commit e9e1e8ef63
2 changed files with 4 additions and 2 deletions

View File

@ -3,9 +3,11 @@
## Canary
* Fixed a caching issue that caused cache misses on character page metadata
* Fixed rate limit issues that sometimes disconnected characters when multiple characters were connected
* Fixed a bug in age matching
* URL preview fixes for Redgifs, Gelbooru, Tumblr, and Gifmixxx
* All dependencies are now up to date
* F-Chat Rising now flushes character profiles out of its cache after 30 days
* Age difference for 'older' and 'younger' character kinks is now 8 years
## 1.0.1

View File

@ -664,10 +664,10 @@ export class Matcher {
const youngerCharactersScore = Matcher.getKinkPreference(you, Kink.YoungerCharacters);
const ageDifference = Math.abs(yourAge - theirAge);
if ((yourAge < theirAge) && (olderCharactersScore !== null) && (ageDifference >= 4))
if ((yourAge < theirAge) && (olderCharactersScore !== null) && (ageDifference >= 8))
return Matcher.formatKinkScore(olderCharactersScore, 'older characters');
if ((yourAge > theirAge) && (youngerCharactersScore !== null) && (ageDifference <= 4))
if ((yourAge > theirAge) && (youngerCharactersScore !== null) && (ageDifference >= 8))
return Matcher.formatKinkScore(youngerCharactersScore, 'younger characters');
}