~cytrogen/masto-fe

ref: 95b389e89d984644f986bf984f9bc38080f6fb32 masto-fe/app/javascript/flavours/glitch/utils/privacy_preference.js -rw-r--r-- 177 bytes
95b389e8 — Cytrogen Convert mastodon flavour SCSS to CSS custom properties (Phase 7) 14 days ago
                                                                                
1
2
3
4
5
export const order = ["public", "unlisted", "private", "direct"];

export function privacyPreference (a, b) {
  return order[Math.max(order.indexOf(a), order.indexOf(b), 0)];
}