/.well-known 周りをいい感じに (#4141)
* Enhance /.well-known and their friends * Fix bug
This commit is contained in:

committed by
GitHub

parent
2f4434b0d8
commit
9dd06a7621
@@ -1,8 +1,5 @@
|
||||
type UserLike = {
|
||||
host: string;
|
||||
username: string;
|
||||
};
|
||||
import Acct from './type';
|
||||
|
||||
export default (user: UserLike) => {
|
||||
export default (user: Acct) => {
|
||||
return user.host === null ? user.username : `${user.username}@${user.host}`;
|
||||
};
|
||||
|
Reference in New Issue
Block a user