Giter Site home page Giter Site logo

Comments (9)

rahaeli avatar rahaeli commented on June 7, 2024

Oh, I instantly remembered what I forgot: there are still a few accounts floating around from the days of pre-closed-beta that have an init_bdate of 0000-00-00. Because there definitely weren't any three-year-olds creating accounts in pre-closed-beta in 2008/2009 -- it was all folks who were working on the code -- just put in an exception for the purpose of this check that any account with an 0000-00-00 init_bdate should be considered over 18 (and thus not able to DM accounts with an init_bdate under 18).

from dreamwidth.

pauamma avatar pauamma commented on June 7, 2024

Should someone over 18 be allowed to see (in their inbox) messages to and from someone under 18 exchanged before this change was pushed? Delete them?
Should someone under 18 be allowed to see (in their inbox) messages to and from someone over 18 exchanged before this change was pushed? Delete them? (There may be reasons for the answers to these 2 questions and the 2 above to differ, eg for law enforcement purposes.)
Should someone who turns 18 then be allowed to message someone already over 18?
Since the init_bdate is only precise to the day and doesn't include a timezone, should 2 people born on the same date (whether in the same timezone or not) both treated the same on the day they turn 18, even though there may be almost 50 hours between their births, without it being possible to say who is older, or should that be disallowed to be on the safe side?

from dreamwidth.

rahaeli avatar rahaeli commented on June 7, 2024

Should someone over 18 be allowed to see (in their inbox) messages to and from someone under 18 exchanged before this change was pushed? Delete them?

Leave already extant messages in the inbox, but make them unreplyable until both parties are over 18.

Should someone under 18 be allowed to see (in their inbox) messages to and from someone over 18 exchanged before this change was pushed? Delete them?

Yes, same as previous: leave already extant messages in the inbox, just make them unreplyable until both parties are over 18.

Should someone who turns 18 then be allowed to message someone already over 18?

Yes, once the init_bdate makes you over 18, you should be able to interact with people who are already over 18 -- this shouldn't be a permanent "you made your account while you were under 18, so your account will forever be limited", just a way of keeping people currently over 18 from private messaging people currently under 18 and vice versa.

Since the init_bdate is only precise to the day and doesn't include a timezone, should 2 people born on the same date (whether in the same timezone or not) both treated the same on the day they turn 18, even though there may be almost 50 hours between their births, without it being possible to say who is older, or should that be disallowed to be on the safe side?

We don't need to get that fine-grained about it -- a day or two on either side isn't an issue. (This isn't for compliance with a specific law yet -- all the ones that would introduce this as a legal requirement have been stayed on constitutional grounds -- just a way of bringing some of our features more up to parity with the current zeitgeist.) "is today equal to or greater than the init_bdate + 18 years by server time" is close enough for a check.

from dreamwidth.

pauamma avatar pauamma commented on June 7, 2024

https://github.com/dreamwidth/dreamwidth/blob/main/cgi-bin/LJ/User/Message.pm#L300 (can_receive_message)
https://github.com/dreamwidth/dreamwidth/blob/main/cgi-bin/LJ/User/Age.pm#L164 (init_age)

from dreamwidth.

pauamma avatar pauamma commented on June 7, 2024

Also noting that the adult interstitial uses best_guess_age (init_age with fallback on age) instead, but the spec above precludes doing that.

from dreamwidth.

rahaeli avatar rahaeli commented on June 7, 2024

We should be able to use that, just add the check for the few accounts that somehow managed to not get an init_bdate set. (Or I suppose I could get somebody to check on how many accounts were affected and contact them to set one if it's not that many.)

from dreamwidth.

pauamma avatar pauamma commented on June 7, 2024

nod I think I'm going to write tests for can_receive_message as a first step. (Do you want that in a separate PR?)

from dreamwidth.

rahaeli avatar rahaeli commented on June 7, 2024

I will defer to @kareila and @zorkian but I'd be fine with it in one!

from dreamwidth.

pauamma avatar pauamma commented on June 7, 2024

OK for single PR (which will only contain age-based testing - calling testing for other restrictions out of scope for this) since they haven't replied.

from dreamwidth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.