mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
0b733ca790
Port 50487db122
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
17 lines
342 B
JavaScript
17 lines
342 B
JavaScript
export const toServerSideType = columnType => {
|
|
switch (columnType) {
|
|
case 'home':
|
|
case 'notifications':
|
|
case 'public':
|
|
case 'thread':
|
|
case 'account':
|
|
return columnType;
|
|
default:
|
|
if (columnType.indexOf('list:') > -1) {
|
|
return 'home';
|
|
} else {
|
|
return 'public'; // community, account, hashtag
|
|
}
|
|
}
|
|
};
|