Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Move label appeal to post dropdown (#2236)

* Move appeal from post to dropdown

* Translate

* Tweak copy on the appeal label modal

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>

authored by

Eric Bailey
Paul Frazee
and committed by
GitHub
8df4fd4d 726bbd2b

+132 -67
+35 -18
src/locale/locales/en/messages.po
··· 75 75 #~ msgid "<0>Note: Your profile and posts will remain publicly available. Third-party apps that display Bluesky content may not respect this setting.</0>" 76 76 #~ msgstr "" 77 77 78 + #: src/view/com/util/moderation/LabelInfo.tsx:45 79 + msgid "A content warning has been applied to this {0}." 80 + msgstr "" 81 + 78 82 #: src/lib/hooks/useOTAUpdate.ts:16 79 83 msgid "A new version of the app is available. Please update to continue using the app." 80 84 msgstr "" ··· 200 204 msgid "App Passwords" 201 205 msgstr "" 202 206 207 + #: src/view/com/util/forms/PostDropdownBtn.tsx:207 208 + msgid "Appeal content warning" 209 + msgstr "" 210 + 203 211 #: src/view/com/modals/AppealLabel.tsx:65 204 - msgid "Appeal Decision" 212 + msgid "Appeal Content Warning" 205 213 msgstr "" 206 214 207 - #: src/view/com/util/moderation/LabelInfo.tsx:51 215 + #: src/view/com/modals/AppealLabel.tsx:65 216 + #~ msgid "Appeal Decision" 217 + #~ msgstr "" 218 + 219 + #: src/view/com/util/moderation/LabelInfo.tsx:52 208 220 msgid "Appeal this decision" 209 221 msgstr "" 210 222 211 - #: src/view/com/util/moderation/LabelInfo.tsx:55 223 + #: src/view/com/util/moderation/LabelInfo.tsx:56 212 224 msgid "Appeal this decision." 213 225 msgstr "" 214 226 ··· 232 244 msgid "Are you sure?" 233 245 msgstr "" 234 246 235 - #: src/view/com/util/forms/PostDropdownBtn.tsx:188 247 + #: src/view/com/util/forms/PostDropdownBtn.tsx:190 236 248 msgid "Are you sure? This cannot be undone." 237 249 msgstr "" 238 250 ··· 585 597 msgid "Copy link to list" 586 598 msgstr "" 587 599 588 - #: src/view/com/util/forms/PostDropdownBtn.tsx:129 600 + #: src/view/com/util/forms/PostDropdownBtn.tsx:131 589 601 msgid "Copy link to post" 590 602 msgstr "" 591 603 ··· 593 605 msgid "Copy link to profile" 594 606 msgstr "" 595 607 596 - #: src/view/com/util/forms/PostDropdownBtn.tsx:115 608 + #: src/view/com/util/forms/PostDropdownBtn.tsx:117 597 609 msgid "Copy post text" 598 610 msgstr "" 599 611 ··· 666 678 msgid "Delete my account…" 667 679 msgstr "" 668 680 669 - #: src/view/com/util/forms/PostDropdownBtn.tsx:183 681 + #: src/view/com/util/forms/PostDropdownBtn.tsx:185 670 682 msgid "Delete post" 671 683 msgstr "" 672 684 673 - #: src/view/com/util/forms/PostDropdownBtn.tsx:187 685 + #: src/view/com/util/forms/PostDropdownBtn.tsx:189 674 686 msgid "Delete this post?" 675 687 msgstr "" 676 688 ··· 1317 1329 msgid "Mute these accounts?" 1318 1330 msgstr "" 1319 1331 1320 - #: src/view/com/util/forms/PostDropdownBtn.tsx:147 1332 + #: src/view/com/util/forms/PostDropdownBtn.tsx:149 1321 1333 msgid "Mute thread" 1322 1334 msgstr "" 1323 1335 ··· 1592 1604 1593 1605 #: src/view/com/modals/AppealLabel.tsx:72 1594 1606 #: src/view/com/modals/AppealLabel.tsx:75 1595 - msgid "Please tell us why you think this decision was incorrect." 1607 + msgid "Please tell us why you think this content warning was incorrectly applied!" 1596 1608 msgstr "" 1597 1609 1610 + #: src/view/com/modals/AppealLabel.tsx:72 1611 + #: src/view/com/modals/AppealLabel.tsx:75 1612 + #~ msgid "Please tell us why you think this decision was incorrect." 1613 + #~ msgstr "" 1614 + 1598 1615 #: src/view/com/composer/Composer.tsx:337 1599 1616 #: src/view/com/post-thread/PostThread.tsx:226 1600 1617 #: src/view/screens/PostThread.tsx:80 ··· 1771 1788 msgstr "" 1772 1789 1773 1790 #: src/view/com/modals/report/SendReportButton.tsx:37 1774 - #: src/view/com/util/forms/PostDropdownBtn.tsx:165 1791 + #: src/view/com/util/forms/PostDropdownBtn.tsx:167 1775 1792 msgid "Report post" 1776 1793 msgstr "" 1777 1794 ··· 1982 1999 msgstr "" 1983 2000 1984 2001 #: src/view/com/profile/ProfileHeader.tsx:338 1985 - #: src/view/com/util/forms/PostDropdownBtn.tsx:129 2002 + #: src/view/com/util/forms/PostDropdownBtn.tsx:131 1986 2003 #: src/view/screens/ProfileList.tsx:384 1987 2004 msgid "Share" 1988 2005 msgstr "" ··· 2202 2219 msgstr "" 2203 2220 2204 2221 #: src/view/com/util/moderation/LabelInfo.tsx:45 2205 - msgid "This {0} has been labeled." 2206 - msgstr "" 2222 + #~ msgid "This {0} has been labeled." 2223 + #~ msgstr "" 2207 2224 2208 2225 #: src/view/com/util/moderation/ScreenHider.tsx:88 2209 2226 msgid "This {screenDescription} has been flagged:" ··· 2237 2254 msgid "This link is taking you to the following website:" 2238 2255 msgstr "" 2239 2256 2240 - #: src/view/com/post-thread/PostThreadItem.tsx:124 2257 + #: src/view/com/post-thread/PostThreadItem.tsx:123 2241 2258 msgid "This post has been deleted." 2242 2259 msgstr "" 2243 2260 ··· 2262 2279 msgid "Transformations" 2263 2280 msgstr "" 2264 2281 2282 + #: src/view/com/post-thread/PostThreadItem.tsx:704 2265 2283 #: src/view/com/post-thread/PostThreadItem.tsx:706 2266 - #: src/view/com/post-thread/PostThreadItem.tsx:708 2267 - #: src/view/com/util/forms/PostDropdownBtn.tsx:101 2284 + #: src/view/com/util/forms/PostDropdownBtn.tsx:103 2268 2285 msgid "Translate" 2269 2286 msgstr "" 2270 2287 ··· 2308 2325 msgid "Unmute Account" 2309 2326 msgstr "" 2310 2327 2311 - #: src/view/com/util/forms/PostDropdownBtn.tsx:147 2328 + #: src/view/com/util/forms/PostDropdownBtn.tsx:149 2312 2329 msgid "Unmute thread" 2313 2330 msgstr "" 2314 2331
+35 -18
src/locale/locales/hi/messages.po
··· 75 75 #~ msgid "<0>Note: Your profile and posts will remain publicly available. Third-party apps that display Bluesky content may not respect this setting.</0>" 76 76 #~ msgstr "" 77 77 78 + #: src/view/com/util/moderation/LabelInfo.tsx:45 79 + msgid "A content warning has been applied to this {0}." 80 + msgstr "" 81 + 78 82 #: src/lib/hooks/useOTAUpdate.ts:16 79 83 msgid "A new version of the app is available. Please update to continue using the app." 80 84 msgstr "ऐप का एक नया संस्करण उपलब्ध है. कृपया ऐप का उपयोग जारी रखने के लिए अपडेट करें।" ··· 200 204 msgid "App Passwords" 201 205 msgstr "ऐप पासवर्ड" 202 206 207 + #: src/view/com/util/forms/PostDropdownBtn.tsx:207 208 + msgid "Appeal content warning" 209 + msgstr "" 210 + 203 211 #: src/view/com/modals/AppealLabel.tsx:65 204 - msgid "Appeal Decision" 212 + msgid "Appeal Content Warning" 205 213 msgstr "" 206 214 207 - #: src/view/com/util/moderation/LabelInfo.tsx:51 215 + #: src/view/com/modals/AppealLabel.tsx:65 216 + #~ msgid "Appeal Decision" 217 + #~ msgstr "" 218 + 219 + #: src/view/com/util/moderation/LabelInfo.tsx:52 208 220 msgid "Appeal this decision" 209 221 msgstr "" 210 222 211 - #: src/view/com/util/moderation/LabelInfo.tsx:55 223 + #: src/view/com/util/moderation/LabelInfo.tsx:56 212 224 msgid "Appeal this decision." 213 225 msgstr "" 214 226 ··· 232 244 msgid "Are you sure?" 233 245 msgstr "क्या आप वास्तव में इसे करना चाहते हैं?" 234 246 235 - #: src/view/com/util/forms/PostDropdownBtn.tsx:188 247 + #: src/view/com/util/forms/PostDropdownBtn.tsx:190 236 248 msgid "Are you sure? This cannot be undone." 237 249 msgstr "क्या आप वास्तव में इसे करना चाहते हैं? इसे असंपादित नहीं किया जा सकता है।" 238 250 ··· 581 593 msgid "Copy link to list" 582 594 msgstr "" 583 595 584 - #: src/view/com/util/forms/PostDropdownBtn.tsx:129 596 + #: src/view/com/util/forms/PostDropdownBtn.tsx:131 585 597 msgid "Copy link to post" 586 598 msgstr "" 587 599 ··· 589 601 msgid "Copy link to profile" 590 602 msgstr "" 591 603 592 - #: src/view/com/util/forms/PostDropdownBtn.tsx:115 604 + #: src/view/com/util/forms/PostDropdownBtn.tsx:117 593 605 msgid "Copy post text" 594 606 msgstr "पोस्ट टेक्स्ट कॉपी करें" 595 607 ··· 662 674 msgid "Delete my account…" 663 675 msgstr "मेरा खाता हटाएं…" 664 676 665 - #: src/view/com/util/forms/PostDropdownBtn.tsx:183 677 + #: src/view/com/util/forms/PostDropdownBtn.tsx:185 666 678 msgid "Delete post" 667 679 msgstr "पोस्ट को हटाएं" 668 680 669 - #: src/view/com/util/forms/PostDropdownBtn.tsx:187 681 + #: src/view/com/util/forms/PostDropdownBtn.tsx:189 670 682 msgid "Delete this post?" 671 683 msgstr "इस पोस्ट को डीलीट करें?" 672 684 ··· 1309 1321 msgid "Mute these accounts?" 1310 1322 msgstr "इन खातों को म्यूट करें?" 1311 1323 1312 - #: src/view/com/util/forms/PostDropdownBtn.tsx:147 1324 + #: src/view/com/util/forms/PostDropdownBtn.tsx:149 1313 1325 msgid "Mute thread" 1314 1326 msgstr "थ्रेड म्यूट करें" 1315 1327 ··· 1584 1596 1585 1597 #: src/view/com/modals/AppealLabel.tsx:72 1586 1598 #: src/view/com/modals/AppealLabel.tsx:75 1587 - msgid "Please tell us why you think this decision was incorrect." 1599 + msgid "Please tell us why you think this content warning was incorrectly applied!" 1588 1600 msgstr "" 1589 1601 1602 + #: src/view/com/modals/AppealLabel.tsx:72 1603 + #: src/view/com/modals/AppealLabel.tsx:75 1604 + #~ msgid "Please tell us why you think this decision was incorrect." 1605 + #~ msgstr "" 1606 + 1590 1607 #: src/view/com/composer/Composer.tsx:337 1591 1608 #: src/view/com/post-thread/PostThread.tsx:226 1592 1609 #: src/view/screens/PostThread.tsx:80 ··· 1763 1780 msgstr "रिपोर्ट सूची" 1764 1781 1765 1782 #: src/view/com/modals/report/SendReportButton.tsx:37 1766 - #: src/view/com/util/forms/PostDropdownBtn.tsx:165 1783 + #: src/view/com/util/forms/PostDropdownBtn.tsx:167 1767 1784 msgid "Report post" 1768 1785 msgstr "रिपोर्ट पोस्ट" 1769 1786 ··· 1974 1991 msgstr "यौन गतिविधि या कामुक नग्नता।।" 1975 1992 1976 1993 #: src/view/com/profile/ProfileHeader.tsx:338 1977 - #: src/view/com/util/forms/PostDropdownBtn.tsx:129 1994 + #: src/view/com/util/forms/PostDropdownBtn.tsx:131 1978 1995 #: src/view/screens/ProfileList.tsx:384 1979 1996 msgid "Share" 1980 1997 msgstr "शेयर" ··· 2194 2211 msgstr "एप्लिकेशन में एक अप्रत्याशित समस्या थी. कृपया हमें बताएं कि क्या आपके साथ ऐसा हुआ है!" 2195 2212 2196 2213 #: src/view/com/util/moderation/LabelInfo.tsx:45 2197 - msgid "This {0} has been labeled." 2198 - msgstr "" 2214 + #~ msgid "This {0} has been labeled." 2215 + #~ msgstr "" 2199 2216 2200 2217 #: src/view/com/util/moderation/ScreenHider.tsx:88 2201 2218 msgid "This {screenDescription} has been flagged:" ··· 2229 2246 msgid "This link is taking you to the following website:" 2230 2247 msgstr "यह लिंक आपको निम्नलिखित वेबसाइट पर ले जा रहा है:" 2231 2248 2232 - #: src/view/com/post-thread/PostThreadItem.tsx:124 2249 + #: src/view/com/post-thread/PostThreadItem.tsx:123 2233 2250 msgid "This post has been deleted." 2234 2251 msgstr "इस पोस्ट को हटा दिया गया है।।" 2235 2252 ··· 2254 2271 msgid "Transformations" 2255 2272 msgstr "परिवर्तन" 2256 2273 2274 + #: src/view/com/post-thread/PostThreadItem.tsx:704 2257 2275 #: src/view/com/post-thread/PostThreadItem.tsx:706 2258 - #: src/view/com/post-thread/PostThreadItem.tsx:708 2259 - #: src/view/com/util/forms/PostDropdownBtn.tsx:101 2276 + #: src/view/com/util/forms/PostDropdownBtn.tsx:103 2260 2277 msgid "Translate" 2261 2278 msgstr "अनुवाद" 2262 2279 ··· 2300 2317 msgid "Unmute Account" 2301 2318 msgstr "अनम्यूट खाता" 2302 2319 2303 - #: src/view/com/util/forms/PostDropdownBtn.tsx:147 2320 + #: src/view/com/util/forms/PostDropdownBtn.tsx:149 2304 2321 msgid "Unmute thread" 2305 2322 msgstr "थ्रेड को अनम्यूट करें" 2306 2323
+37 -20
src/locale/locales/ja/messages.po
··· 55 55 msgid "<0>Follow some</0><1>Recommended</1><2>Users</2>" 56 56 msgstr "<1>おすすめの</1><2>ユーザー</2><0>をフォロー</0>" 57 57 58 + #: src/view/com/util/moderation/LabelInfo.tsx:45 59 + msgid "A content warning has been applied to this {0}." 60 + msgstr "" 61 + 58 62 #: src/lib/hooks/useOTAUpdate.ts:16 59 63 msgid "A new version of the app is available. Please update to continue using the app." 60 64 msgstr "新しいバージョンのアプリが利用可能です。継続して使用するためにはアップデートしてください。" ··· 180 184 msgid "App Passwords" 181 185 msgstr "アプリパスワード" 182 186 187 + #: src/view/com/util/forms/PostDropdownBtn.tsx:207 188 + msgid "Appeal content warning" 189 + msgstr "" 190 + 183 191 #: src/view/com/modals/AppealLabel.tsx:65 184 - msgid "Appeal Decision" 185 - msgstr "判断に異議" 192 + msgid "Appeal Content Warning" 193 + msgstr "" 186 194 187 - #: src/view/com/util/moderation/LabelInfo.tsx:51 195 + #: src/view/com/modals/AppealLabel.tsx:65 196 + #~ msgid "Appeal Decision" 197 + #~ msgstr "判断に異議" 198 + 199 + #: src/view/com/util/moderation/LabelInfo.tsx:52 188 200 msgid "Appeal this decision" 189 201 msgstr "この判断に異議を申し立てる" 190 202 191 - #: src/view/com/util/moderation/LabelInfo.tsx:55 203 + #: src/view/com/util/moderation/LabelInfo.tsx:56 192 204 msgid "Appeal this decision." 193 205 msgstr "この判断に異議を申し立てる" 194 206 ··· 208 220 msgid "Are you sure?" 209 221 msgstr "本当によろしいですか?" 210 222 211 - #: src/view/com/util/forms/PostDropdownBtn.tsx:188 223 + #: src/view/com/util/forms/PostDropdownBtn.tsx:190 212 224 msgid "Are you sure? This cannot be undone." 213 225 msgstr "本当によろしいですか?これは元に戻せません。" 214 226 ··· 553 565 msgid "Copy link to list" 554 566 msgstr "リストへのリンクをコピー" 555 567 556 - #: src/view/com/util/forms/PostDropdownBtn.tsx:129 568 + #: src/view/com/util/forms/PostDropdownBtn.tsx:131 557 569 msgid "Copy link to post" 558 570 msgstr "投稿へのリンクをコピー" 559 571 ··· 561 573 msgid "Copy link to profile" 562 574 msgstr "プロフィールへのリンクをコピー" 563 575 564 - #: src/view/com/util/forms/PostDropdownBtn.tsx:115 576 + #: src/view/com/util/forms/PostDropdownBtn.tsx:117 565 577 msgid "Copy post text" 566 578 msgstr "投稿のテキストをコピー" 567 579 ··· 630 642 msgid "Delete my account…" 631 643 msgstr "マイアカウントを削除…" 632 644 633 - #: src/view/com/util/forms/PostDropdownBtn.tsx:183 645 + #: src/view/com/util/forms/PostDropdownBtn.tsx:185 634 646 msgid "Delete post" 635 647 msgstr "投稿を削除" 636 648 637 - #: src/view/com/util/forms/PostDropdownBtn.tsx:187 649 + #: src/view/com/util/forms/PostDropdownBtn.tsx:189 638 650 msgid "Delete this post?" 639 651 msgstr "この投稿を削除しますか?" 640 652 ··· 1252 1264 msgid "Mute these accounts?" 1253 1265 msgstr "これらのアカウントをミュートしますか?" 1254 1266 1255 - #: src/view/com/util/forms/PostDropdownBtn.tsx:147 1267 + #: src/view/com/util/forms/PostDropdownBtn.tsx:149 1256 1268 msgid "Mute thread" 1257 1269 msgstr "スレッドをミュート" 1258 1270 ··· 1510 1522 1511 1523 #: src/view/com/modals/AppealLabel.tsx:72 1512 1524 #: src/view/com/modals/AppealLabel.tsx:75 1513 - msgid "Please tell us why you think this decision was incorrect." 1514 - msgstr "この判断が誤っていると考える理由を教えてください。" 1525 + msgid "Please tell us why you think this content warning was incorrectly applied!" 1526 + msgstr "" 1527 + 1528 + #: src/view/com/modals/AppealLabel.tsx:72 1529 + #: src/view/com/modals/AppealLabel.tsx:75 1530 + #~ msgid "Please tell us why you think this decision was incorrect." 1531 + #~ msgstr "この判断が誤っていると考える理由を教えてください。" 1515 1532 1516 1533 #: src/view/com/composer/Composer.tsx:337 1517 1534 #: src/view/com/post-thread/PostThread.tsx:226 ··· 1684 1701 msgstr "リストを報告" 1685 1702 1686 1703 #: src/view/com/modals/report/SendReportButton.tsx:37 1687 - #: src/view/com/util/forms/PostDropdownBtn.tsx:165 1704 + #: src/view/com/util/forms/PostDropdownBtn.tsx:167 1688 1705 msgid "Report post" 1689 1706 msgstr "投稿を報告" 1690 1707 ··· 1879 1896 msgstr "性的行為または性的なヌード。" 1880 1897 1881 1898 #: src/view/com/profile/ProfileHeader.tsx:338 1882 - #: src/view/com/util/forms/PostDropdownBtn.tsx:129 1899 + #: src/view/com/util/forms/PostDropdownBtn.tsx:131 1883 1900 #: src/view/screens/ProfileList.tsx:384 1884 1901 msgid "Share" 1885 1902 msgstr "共有" ··· 2091 2108 msgstr "アプリケーションに予期しない問題が発生しました。このようなことがありましたらお知らせください!" 2092 2109 2093 2110 #: src/view/com/util/moderation/LabelInfo.tsx:45 2094 - msgid "This {0} has been labeled." 2095 - msgstr "この{0}にはラベルが貼られています" 2111 + #~ msgid "This {0} has been labeled." 2112 + #~ msgstr "この{0}にはラベルが貼られています" 2096 2113 2097 2114 #: src/view/com/util/moderation/ScreenHider.tsx:88 2098 2115 msgid "This {screenDescription} has been flagged:" ··· 2126 2143 msgid "This link is taking you to the following website:" 2127 2144 msgstr "このリンクは次のウェブサイトへリンクしています:" 2128 2145 2129 - #: src/view/com/post-thread/PostThreadItem.tsx:124 2146 + #: src/view/com/post-thread/PostThreadItem.tsx:123 2130 2147 msgid "This post has been deleted." 2131 2148 msgstr "この投稿は削除されました。" 2132 2149 ··· 2151 2168 msgid "Transformations" 2152 2169 msgstr "変換" 2153 2170 2171 + #: src/view/com/post-thread/PostThreadItem.tsx:704 2154 2172 #: src/view/com/post-thread/PostThreadItem.tsx:706 2155 - #: src/view/com/post-thread/PostThreadItem.tsx:708 2156 - #: src/view/com/util/forms/PostDropdownBtn.tsx:101 2173 + #: src/view/com/util/forms/PostDropdownBtn.tsx:103 2157 2174 msgid "Translate" 2158 2175 msgstr "翻訳" 2159 2176 ··· 2197 2214 msgid "Unmute Account" 2198 2215 msgstr "アカウントのミュートを解除" 2199 2216 2200 - #: src/view/com/util/forms/PostDropdownBtn.tsx:147 2217 + #: src/view/com/util/forms/PostDropdownBtn.tsx:149 2201 2218 msgid "Unmute thread" 2202 2219 msgstr "スレッドのミュートを解除" 2203 2220
+3 -3
src/view/com/modals/AppealLabel.tsx
··· 62 62 <Text 63 63 type="2xl-bold" 64 64 style={[pal.text, s.textCenter, {paddingBottom: 8}]}> 65 - <Trans>Appeal Decision</Trans> 65 + <Trans>Appeal Content Warning</Trans> 66 66 </Text> 67 67 <ScrollView> 68 68 <View style={[pal.btn, styles.detailsInputContainer]}> 69 69 <TextInput 70 70 accessibilityLabel={_(msg`Text input field`)} 71 71 accessibilityHint={_( 72 - msg`Please tell us why you think this decision was incorrect.`, 72 + msg`Please tell us why you think this content warning was incorrectly applied!`, 73 73 )} 74 74 placeholder={_( 75 - msg`Please tell us why you think this decision was incorrect.`, 75 + msg`Please tell us why you think this content warning was incorrectly applied!`, 76 76 )} 77 77 placeholderTextColor={pal.textLight.color} 78 78 value={details}
+3 -8
src/view/com/post-thread/PostThreadItem.tsx
··· 42 42 import {useModerationOpts} from '#/state/queries/preferences' 43 43 import {Shadow, usePostShadow, POST_TOMBSTONE} from '#/state/cache/post-shadow' 44 44 import {ThreadPost} from '#/state/queries/post-thread' 45 - import {LabelInfo} from '../util/moderation/LabelInfo' 46 45 import {useSession} from '#/state/session' 47 46 import {WhoCanReply} from '../threadgate/WhoCanReply' 48 47 ··· 335 334 postCid={post.cid} 336 335 postUri={post.uri} 337 336 record={record} 337 + showAppealLabelItem={ 338 + post.author.did === currentAccount?.did && !isSelfLabeledPost 339 + } 338 340 style={{ 339 341 paddingVertical: 6, 340 342 paddingHorizontal: 10, ··· 354 356 includeMute 355 357 style={styles.alert} 356 358 /> 357 - {post.author.did === currentAccount?.did && !isSelfLabeledPost ? ( 358 - <LabelInfo 359 - details={{uri: post.uri, cid: post.cid}} 360 - labels={post.labels} 361 - style={{marginBottom: 8}} 362 - /> 363 - ) : null} 364 359 {richText?.text ? ( 365 360 <View 366 361 style={[
+19
src/view/com/util/forms/PostDropdownBtn.tsx
··· 31 31 postUri, 32 32 record, 33 33 style, 34 + showAppealLabelItem, 34 35 }: { 35 36 testID: string 36 37 postAuthor: AppBskyActorDefs.ProfileViewBasic ··· 38 39 postUri: string 39 40 record: AppBskyFeedPost.Record 40 41 style?: StyleProp<ViewStyle> 42 + showAppealLabelItem?: boolean 41 43 }): React.ReactNode => { 42 44 const {hasSession, currentAccount} = useSession() 43 45 const theme = useTheme() ··· 196 198 }, 197 199 android: 'ic_menu_delete', 198 200 web: ['far', 'trash-can'], 201 + }, 202 + }, 203 + showAppealLabelItem && { 204 + label: 'separator', 205 + }, 206 + showAppealLabelItem && { 207 + label: _(msg`Appeal content warning`), 208 + onPress() { 209 + openModal({name: 'appeal-label', uri: postUri, cid: postCid}) 210 + }, 211 + testID: 'postDropdownAppealBtn', 212 + icon: { 213 + ios: { 214 + name: 'exclamationmark.triangle', 215 + }, 216 + android: 'ic_menu_report_image', 217 + web: 'circle-exclamation', 199 218 }, 200 219 }, 201 220 ].filter(Boolean) as NativeDropdownItem[]