mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-02 08:26:22 +01:00
api/service-alias: refactor
This commit is contained in:
parent
740a75851e
commit
97fb6e60a2
1 changed files with 1 additions and 2 deletions
|
@ -1,10 +1,9 @@
|
||||||
const friendlyNames = {
|
const friendlyNames = {
|
||||||
bsky: "bluesky",
|
bsky: "bluesky",
|
||||||
}
|
}
|
||||||
const friendlyKeys = Object.keys(friendlyNames);
|
|
||||||
|
|
||||||
export const friendlyServiceName = (service) => {
|
export const friendlyServiceName = (service) => {
|
||||||
if (service in friendlyKeys) {
|
if (service in friendlyNames) {
|
||||||
return friendlyNames[service];
|
return friendlyNames[service];
|
||||||
}
|
}
|
||||||
return service;
|
return service;
|
||||||
|
|
Loading…
Reference in a new issue