mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add avatar in comments
This commit is contained in:
parent
265ba139eb
commit
cf117aaafc
17 changed files with 143 additions and 88 deletions
|
@ -1,8 +1,6 @@
|
|||
import * as validator from 'validator'
|
||||
import { CONSTRAINTS_FIELDS } from '../../../initializers'
|
||||
import { isAccountNameValid } from '../accounts'
|
||||
import { exists } from '../misc'
|
||||
import { isVideoChannelNameValid } from '../video-channels'
|
||||
import { isActivityPubUrlValid, isBaseActivityValid, setValidAttributedTo } from './misc'
|
||||
|
||||
function isActorEndpointsObjectValid (endpointObject: any) {
|
||||
|
@ -32,10 +30,6 @@ function isActorPreferredUsernameValid (preferredUsername: string) {
|
|||
return exists(preferredUsername) && validator.matches(preferredUsername, actorNameRegExp)
|
||||
}
|
||||
|
||||
function isActorNameValid (name: string) {
|
||||
return isAccountNameValid(name) || isVideoChannelNameValid(name)
|
||||
}
|
||||
|
||||
function isActorPrivateKeyValid (privateKey: string) {
|
||||
return exists(privateKey) &&
|
||||
typeof privateKey === 'string' &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue