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
|
|
}
|
|
}
|
|
};
|