From: Dessalines Date: Sat, 11 Jul 2020 23:25:17 +0000 (-0400) Subject: Adding number of comments for user search. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/static/%7Bsrc%7D?a=commitdiff_plain;h=f3dbfcd37b84f58b42dfdbeec14334ba5af8e379;p=lemmy.git Adding number of comments for user search. --- diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx index c4cb9745..b2e55497 100644 --- a/ui/src/components/search.tsx +++ b/ui/src/components/search.tsx @@ -275,6 +275,7 @@ export class Search extends Component { {i.type_ == 'users' && (
+ @ { }} /> + {` - ${i18n.t('number_of_comments', { + count: (i.data as UserView).number_of_comments, + })}`}
)} @@ -356,6 +360,7 @@ export class Search extends Component {
+ @ { }} /> + {` - ${i18n.t('number_of_comments', { + count: user.number_of_comments, + })}`}
))} diff --git a/ui/src/components/user-listing.tsx b/ui/src/components/user-listing.tsx index 76196d47..58475d3e 100644 --- a/ui/src/components/user-listing.tsx +++ b/ui/src/components/user-listing.tsx @@ -52,7 +52,7 @@ export class UserListing extends Component { class="rounded-circle mr-2" /> )} - {`/u/${name_}`} + {name_} {isCakeDay(user.published) && }