summaryrefslogtreecommitdiff
path: root/src/misc/acct/render.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/acct/render.ts')
-rw-r--r--src/misc/acct/render.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/misc/acct/render.ts b/src/misc/acct/render.ts
index 20031883d3..92ee2010a6 100644
--- a/src/misc/acct/render.ts
+++ b/src/misc/acct/render.ts
@@ -1,5 +1,8 @@
-import { IUser } from '../../models/user';
+type UserLike = {
+ host: string;
+ username: string;
+};
-export default (user: IUser) => {
+export default (user: UserLike) => {
return user.host === null ? user.username : `${user.username}@${user.host}`;
};