Compare commits
1 Commits
6c219c5226
...
6839ae5742
Author | SHA1 | Date |
---|---|---|
Ferdinand Thiessen | 6839ae5742 |
|
@ -0,0 +1,7 @@
|
||||||
|
import { api } from '../internal';
|
||||||
|
|
||||||
|
export function avatarURL(user: FG.User, thumbnail = true) {
|
||||||
|
return `${api.defaults?.baseURL || ''}/users/${user.userid}/avatar${
|
||||||
|
thumbnail ? '?thumbnail' : ''
|
||||||
|
}`;
|
||||||
|
}
|
Loading…
Reference in New Issue