Flarum (v2.0.0-beta.1)
    Preparing search index...
    • Fetches a user's username or display name.

      Chooses based on the format option set in the admin settings page.

      Parameters

      • user: any

        An instance of the User model to fetch the username for

      • useDisplayName: boolean = true

        If true, uses user.displayName(), otherwise, uses user.username()

      Returns any