Move privacyPreference to utils
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
export const order = ['public', 'unlisted', 'private', 'direct'];
|
||||
|
||||
export function privacyPreference (a, b) {
|
||||
return order[Math.max(order.indexOf(a), order.indexOf(b), 0)];
|
||||
};
|
Reference in New Issue
Block a user