mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-23 18:16:14 +02:00
api/service-alias: refactor
This commit is contained in:
parent
740a75851e
commit
97fb6e60a2
@ -1,10 +1,9 @@
|
||||
const friendlyNames = {
|
||||
bsky: "bluesky",
|
||||
}
|
||||
const friendlyKeys = Object.keys(friendlyNames);
|
||||
|
||||
export const friendlyServiceName = (service) => {
|
||||
if (service in friendlyKeys) {
|
||||
if (service in friendlyNames) {
|
||||
return friendlyNames[service];
|
||||
}
|
||||
return service;
|
||||
|
Loading…
x
Reference in New Issue
Block a user