]> cat aescling's git repositories - mastodon.git/commitdiff
Change "Profile unavailable" string to "Account suspended" in web UI (#15345)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 14 Dec 2020 08:08:09 +0000 (09:08 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Dec 2020 08:08:09 +0000 (09:08 +0100)
app/javascript/mastodon/features/account_gallery/index.js
app/javascript/mastodon/features/account_timeline/index.js

index 597ca8af62cb387daf2134b08975af00a5737137..015a6a6d7067dc700d35d8928bf9c30f7ad0caad 100644 (file)
@@ -152,6 +152,14 @@ class AccountGallery extends ImmutablePureComponent {
       loadOlder = <LoadMore visible={!isLoading} onClick={this.handleLoadOlder} />;
     }
 
+    let emptyMessage;
+
+    if (suspended) {
+      emptyMessage = <FormattedMessage id='empty_column.account_suspended' defaultMessage='Account suspended' />;
+    } else if (blockedBy) {
+      emptyMessage = <FormattedMessage id='empty_column.account_unavailable' defaultMessage='Profile unavailable' />;
+    }
+
     return (
       <Column>
         <ColumnBackButton multiColumn={multiColumn} />
@@ -162,7 +170,7 @@ class AccountGallery extends ImmutablePureComponent {
 
             {(suspended || blockedBy) ? (
               <div className='empty-column-indicator'>
-                <FormattedMessage id='empty_column.account_unavailable' defaultMessage='Profile unavailable' />
+                {emptyMessage}
               </div>
             ) : (
               <div role='feed' className='account-gallery__container' ref={this.handleRef}>
index cbc8598051a5796f291a6ad2c7e5b37dbd3965ea..fa4239d6f5f4aad1e899b9b86f71acc7ff8cbeaf 100644 (file)
@@ -136,7 +136,9 @@ class AccountTimeline extends ImmutablePureComponent {
 
     let emptyMessage;
 
-    if (suspended || blockedBy) {
+    if (suspended) {
+      emptyMessage = <FormattedMessage id='empty_column.account_suspended' defaultMessage='Account suspended' />;
+    } else if (blockedBy) {
       emptyMessage = <FormattedMessage id='empty_column.account_unavailable' defaultMessage='Profile unavailable' />;
     } else if (remote && statusIds.isEmpty()) {
       emptyMessage = <RemoteHint url={remoteUrl} />;