You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return the new member_for_more_than_three_years boolean in the account
attributes response. Uses the same 360-day-year convention as the
existing one-year check (3 × 360 = 1080 days). The total membership
time is now computed once and reused for both thresholds.
Companion to damus-io/damus#3592.
Signed-off-by: alltheseas <alltheseas@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
// We consider one year to be 360 days, to be a bit lenient with users who might have a few days of downtime in their subscription, and make sure everyone who roughly got a year of service gets the benefit during the announcement.
181
181
constone_year_in_seconds=360*24*60*60
182
+
constthree_years_in_seconds=3*one_year_in_seconds
182
183
// Performance optimization: We only calculate the total membership time if the account is active
0 commit comments