]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/user-listing.tsx
First pass at v2_api
[lemmy-ui.git] / src / shared / components / user-listing.tsx
index a8e4025f1e21502774390fe46ef221ba3768b171..a20785a77568411a6977d3fa78a803e4b25a5f1e 100644 (file)
@@ -1,22 +1,12 @@
 import { Component } from 'inferno';
 import { Link } from 'inferno-router';
-import { UserView } from 'lemmy-js-client';
+import { UserSafe } from 'lemmy-js-client';
 import { showAvatars, hostname, isCakeDay } from '../utils';
 import { CakeDay } from './cake-day';
 import { PictrsImage } from './pictrs-image';
 
-export interface UserOther {
-  name: string;
-  preferred_username?: string;
-  id?: number; // Necessary if its federated
-  avatar?: string;
-  local?: boolean;
-  actor_id?: string;
-  published?: string;
-}
-
 interface UserListingProps {
-  user: UserView | UserOther;
+  user: UserSafe;
   realLink?: boolean;
   useApubName?: boolean;
   muted?: boolean;