filters.js 342 B

12345678910111213141516
  1. export const toServerSideType = columnType => {
  2. switch (columnType) {
  3. case 'home':
  4. case 'notifications':
  5. case 'public':
  6. case 'thread':
  7. case 'account':
  8. return columnType;
  9. default:
  10. if (columnType.indexOf('list:') > -1) {
  11. return 'home';
  12. } else {
  13. return 'public'; // community, account, hashtag
  14. }
  15. }
  16. };