Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

fix(config): change application name and website [MOSOWEB-90] #88

Merged
merged 3 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const APP_NAME = 'Elk'
export const APP_NAME = 'Mozilla.social'
export const APP_WEBSITE = 'https://mozilla.social'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would've felt bad defining a constant for something that gets used once if APP_NAME wasn't also only used once.

export const DEFAULT_POST_CHARS_LIMIT = 500
export const DEFAULT_FONT_SIZE = '15px'
Expand Down
4 changes: 2 additions & 2 deletions server/utils/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { env } from '#build-info'
import { driver } from '#storage-config'

import type { AppInfo } from '~/types'
import { APP_NAME } from '~/constants'
import { APP_NAME, APP_WEBSITE } from '~/constants'

import { makeAbsolutePath } from '~/utils/path.ts'

Expand Down Expand Up @@ -45,7 +45,7 @@ async function fetchAppInfo(origin: string, server: string) {
method: 'POST',
body: {
client_name: APP_NAME + (env !== 'release' ? ` (${env})` : ''),
website: 'https://elk.zone',
website: APP_WEBSITE,
redirect_uris: getRedirectURI(origin, server),
scopes: 'read write follow push',
},
Expand Down
Loading