this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix wrong mute durations

This bug exists for 9 months. It's seconds, not ms.

+14 -14
+14 -14
src/components/account-info.jsx
··· 35 35 import TranslationBlock from './translation-block'; 36 36 37 37 const MUTE_DURATIONS = [ 38 - 1000 * 60 * 5, // 5 minutes 39 - 1000 * 60 * 30, // 30 minutes 40 - 1000 * 60 * 60, // 1 hour 41 - 1000 * 60 * 60 * 6, // 6 hours 42 - 1000 * 60 * 60 * 24, // 1 day 43 - 1000 * 60 * 60 * 24 * 3, // 3 days 44 - 1000 * 60 * 60 * 24 * 7, // 1 week 38 + 60 * 5, // 5 minutes 39 + 60 * 30, // 30 minutes 40 + 60 * 60, // 1 hour 41 + 60 * 60 * 6, // 6 hours 42 + 60 * 60 * 24, // 1 day 43 + 60 * 60 * 24 * 3, // 3 days 44 + 60 * 60 * 24 * 7, // 1 week 45 45 0, // forever 46 46 ]; 47 47 const MUTE_DURATIONS_LABELS = { 48 48 0: 'Forever', 49 - 300_000: '5 minutes', 50 - 1_800_000: '30 minutes', 51 - 3_600_000: '1 hour', 52 - 21_600_000: '6 hours', 53 - 86_400_000: '1 day', 54 - 259_200_000: '3 days', 55 - 604_800_000: '1 week', 49 + 300: '5 minutes', 50 + 1_800: '30 minutes', 51 + 3_600: '1 hour', 52 + 21_600: '6 hours', 53 + 86_400: '1 day', 54 + 259_200: '3 days', 55 + 604_800: '1 week', 56 56 }; 57 57 58 58 const LIMIT = 80;