blob: 3b8b9d36a44b4765ce3e0b0e16aaa529c8d66880 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { PeerTubeServer } from '../server/server.js'
async function setDefaultAccountAvatar (serversArg: PeerTubeServer | PeerTubeServer[], token?: string) {
const servers = Array.isArray(serversArg)
? serversArg
: [ serversArg ]
for (const server of servers) {
await server.users.updateMyAvatar({ fixture: 'avatar.png', token })
}
}
export {
setDefaultAccountAvatar
}
|