mirror of
https://github.com/outline/outline.git
synced 2026-12-01 01:14:11 +03:00
Remove domain parameter and update avatarUrl check
This commit is contained in:
1 parent
dc474573c6
commit
90f9721b40
1 file changed
+1
-4
@@ -28,16 +28,13 @@ type Props = {
|
||||
|
||||
async function teamCreator({
|
||||
name,
|
||||
domain,
|
||||
subdomain,
|
||||
avatarUrl,
|
||||
authenticationProviders,
|
||||
ip,
|
||||
transaction,
|
||||
}: Props): Promise<Team> {
|
||||
// If the service did not provide a logo/avatar then we'll use the default
|
||||
// avatar generation mechanism as Clearbit API is being discontinued
|
||||
if (!avatarUrl || !avatarUrl.startsWith("http")) {
|
||||
if (!avatarUrl.startsWith("http")) {
|
||||
avatarUrl = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user