this repo has no description
0
fork

Configure Feed

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

Prevent replying to self when start compose

+36 -28
+26 -26
src/locales/en.po
··· 100 100 101 101 #: src/components/account-info.jsx:449 102 102 #: src/components/account-info.jsx:851 103 - #: src/pages/account-statuses.jsx:487 103 + #: src/pages/account-statuses.jsx:495 104 104 #: src/pages/search.jsx:345 105 105 #: src/pages/search.jsx:492 106 106 msgid "Posts" ··· 116 116 #: src/components/status.jsx:2140 117 117 #: src/components/status.jsx:2769 118 118 #: src/components/status.jsx:2772 119 - #: src/pages/account-statuses.jsx:531 119 + #: src/pages/account-statuses.jsx:539 120 120 #: src/pages/accounts.jsx:118 121 121 #: src/pages/hashtag.jsx:203 122 122 #: src/pages/list.jsx:171 ··· 1048 1048 msgstr "" 1049 1049 1050 1050 #: src/components/drafts.jsx:250 1051 - #: src/pages/account-statuses.jsx:367 1051 + #: src/pages/account-statuses.jsx:375 1052 1052 msgid "Media" 1053 1053 msgstr "" 1054 1054 ··· 1462 1462 msgstr "" 1463 1463 1464 1464 #: src/components/nav-menu.jsx:273 1465 - #: src/pages/account-statuses.jsx:333 1465 + #: src/pages/account-statuses.jsx:341 1466 1466 #: src/pages/filters.jsx:55 1467 1467 #: src/pages/filters.jsx:94 1468 1468 #: src/pages/hashtag.jsx:344 ··· 1766 1766 msgstr "Clear all" 1767 1767 1768 1768 #: src/components/recent-searches.jsx:94 1769 - #: src/pages/account-statuses.jsx:326 1769 + #: src/pages/account-statuses.jsx:334 1770 1770 msgid "Clear" 1771 1771 msgstr "" 1772 1772 ··· 2662 2662 msgid "Go home" 2663 2663 msgstr "" 2664 2664 2665 - #: src/pages/account-statuses.jsx:238 2665 + #: src/pages/account-statuses.jsx:241 2666 2666 msgid "Account posts" 2667 2667 msgstr "" 2668 2668 2669 - #: src/pages/account-statuses.jsx:245 2669 + #: src/pages/account-statuses.jsx:248 2670 2670 msgid "{accountDisplay} (+ Replies)" 2671 2671 msgstr "" 2672 2672 2673 - #: src/pages/account-statuses.jsx:247 2673 + #: src/pages/account-statuses.jsx:250 2674 2674 msgid "{accountDisplay} (- Boosts)" 2675 2675 msgstr "" 2676 2676 2677 - #: src/pages/account-statuses.jsx:249 2677 + #: src/pages/account-statuses.jsx:252 2678 2678 msgid "{accountDisplay} (#{tagged})" 2679 2679 msgstr "" 2680 2680 2681 - #: src/pages/account-statuses.jsx:251 2681 + #: src/pages/account-statuses.jsx:254 2682 2682 msgid "{accountDisplay} (Media)" 2683 2683 msgstr "" 2684 2684 2685 - #: src/pages/account-statuses.jsx:257 2685 + #: src/pages/account-statuses.jsx:260 2686 2686 msgid "{accountDisplay} ({monthYear})" 2687 2687 msgstr "" 2688 2688 2689 - #: src/pages/account-statuses.jsx:323 2689 + #: src/pages/account-statuses.jsx:331 2690 2690 msgid "Clear filters" 2691 2691 msgstr "" 2692 2692 2693 - #: src/pages/account-statuses.jsx:340 2693 + #: src/pages/account-statuses.jsx:348 2694 2694 msgid "Showing post with replies" 2695 2695 msgstr "" 2696 2696 2697 - #: src/pages/account-statuses.jsx:345 2697 + #: src/pages/account-statuses.jsx:353 2698 2698 msgid "+ Replies" 2699 2699 msgstr "" 2700 2700 2701 - #: src/pages/account-statuses.jsx:351 2701 + #: src/pages/account-statuses.jsx:359 2702 2702 msgid "Showing posts without boosts" 2703 2703 msgstr "" 2704 2704 2705 - #: src/pages/account-statuses.jsx:356 2705 + #: src/pages/account-statuses.jsx:364 2706 2706 msgid "- Boosts" 2707 2707 msgstr "" 2708 2708 2709 - #: src/pages/account-statuses.jsx:362 2709 + #: src/pages/account-statuses.jsx:370 2710 2710 msgid "Showing posts with media" 2711 2711 msgstr "" 2712 2712 2713 2713 #. placeholder {0}: tag.name 2714 - #: src/pages/account-statuses.jsx:379 2714 + #: src/pages/account-statuses.jsx:387 2715 2715 msgid "Showing posts tagged with #{0}" 2716 2716 msgstr "" 2717 2717 2718 2718 #. placeholder {0}: date.toLocaleString(i18n.locale, { month: 'long', year: 'numeric', }) 2719 - #: src/pages/account-statuses.jsx:418 2719 + #: src/pages/account-statuses.jsx:426 2720 2720 msgid "Showing posts in {0}" 2721 2721 msgstr "Showing posts in {0}" 2722 2722 2723 - #: src/pages/account-statuses.jsx:508 2723 + #: src/pages/account-statuses.jsx:516 2724 2724 msgid "Nothing to see here yet." 2725 2725 msgstr "" 2726 2726 2727 - #: src/pages/account-statuses.jsx:509 2727 + #: src/pages/account-statuses.jsx:517 2728 2728 #: src/pages/public.jsx:99 2729 2729 #: src/pages/trending.jsx:452 2730 2730 msgid "Unable to load posts" 2731 2731 msgstr "" 2732 2732 2733 - #: src/pages/account-statuses.jsx:550 2734 - #: src/pages/account-statuses.jsx:580 2733 + #: src/pages/account-statuses.jsx:558 2734 + #: src/pages/account-statuses.jsx:588 2735 2735 msgid "Unable to fetch account info" 2736 2736 msgstr "" 2737 2737 2738 2738 #. placeholder {0}: accountInstance ? ( <> {' '} (<b>{punycode.toUnicode(accountInstance)}</b>) </> ) : null 2739 - #: src/pages/account-statuses.jsx:557 2739 + #: src/pages/account-statuses.jsx:565 2740 2740 msgid "Switch to account's instance {0}" 2741 2741 msgstr "" 2742 2742 2743 - #: src/pages/account-statuses.jsx:587 2743 + #: src/pages/account-statuses.jsx:595 2744 2744 msgid "Switch to my instance (<0>{currentInstance}</0>)" 2745 2745 msgstr "" 2746 2746 2747 - #: src/pages/account-statuses.jsx:660 2747 + #: src/pages/account-statuses.jsx:668 2748 2748 msgid "Month" 2749 2749 msgstr "" 2750 2750
+10 -2
src/pages/account-statuses.jsx
··· 21 21 import pmem from '../utils/pmem'; 22 22 import showToast from '../utils/show-toast'; 23 23 import states, { saveStatus } from '../utils/states'; 24 - import { isMediaFirstInstance } from '../utils/store-utils'; 24 + import { 25 + getCurrentAccountID, 26 + isMediaFirstInstance, 27 + } from '../utils/store-utils'; 25 28 import supports from '../utils/supports'; 26 29 import useTitle from '../utils/useTitle'; 27 30 ··· 291 294 }, [id, mediaFirst]); 292 295 293 296 const { displayName, acct, emojis } = account || {}; 297 + 298 + const isSelf = useMemo( 299 + () => account?.id === getCurrentAccountID(), 300 + [account?.id], 301 + ); 294 302 295 303 const filterBarRef = useRef(); 296 304 const TimelineStart = useMemo(() => { ··· 593 601 </Menu2> 594 602 } 595 603 /> 596 - {acct && ( 604 + {acct && !isSelf && ( 597 605 <data 598 606 class="compose-data" 599 607 value={JSON.stringify({