]> Untitled Git - lemmy.git/commitdiff
Remove karma count from search results(fixes #853)
authorJustin Hernandez <jmarthernandez@gmail.com>
Sat, 11 Jul 2020 20:57:13 +0000 (15:57 -0500)
committerJustin Hernandez <jmarthernandez@gmail.com>
Sat, 11 Jul 2020 20:57:13 +0000 (15:57 -0500)
ui/src/components/search.tsx
ui/src/components/user-listing.tsx

index dd219ba96e46fce33fc89e6b2b33ac2307024413..c4cb974545c1ae89a8123645f62917119627b5dd 100644 (file)
@@ -282,9 +282,6 @@ export class Search extends Component<any, SearchState> {
                       }}
                     />
                   </span>
-                  <span>{` - ${
-                    (i.data as UserView).comment_score
-                  } comment karma`}</span>
                 </div>
               )}
             </div>
@@ -359,12 +356,13 @@ export class Search extends Component<any, SearchState> {
           <div class="row">
             <div class="col-12">
               <span>
-                <Link
-                  className="text-info"
-                  to={`/u/${user.name}`}
-                >{`/u/${user.name}`}</Link>
+                <UserListing
+                  user={{
+                    name: user.name,
+                    avatar: user.avatar,
+                  }}
+                />
               </span>
-              <span>{` - ${user.comment_score} comment karma`}</span>
             </div>
           </div>
         ))}
index 58475d3e94127996cdc516d898745cf6b5e4ccec..76196d47d5608b920315b250828d970971ac9a24 100644 (file)
@@ -52,7 +52,7 @@ export class UserListing extends Component<UserListingProps, any> {
               class="rounded-circle mr-2"
             />
           )}
-          <span>{name_}</span>
+          <span>{`/u/${name_}`}</span>
         </Link>
 
         {isCakeDay(user.published) && <CakeDay creatorName={name_} />}