Skip to content

Replacing magic numbers in the code by settings #24968

@vibl

Description

@vibl

There are a few "magic numbers" in the code, such as in

if (typeof bio !== 'string' || bio.length > 260) {

In this example, is there a reason why 260 has not been replaced by something like settings.get('Accounts_MaxBioLength')? (With the corresponding setting added to app/lib/server/startup/settings.ts).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions