mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add subscriptions endpoints to REST API
This commit is contained in:
parent
4bda2e47bb
commit
06a05d5f47
36 changed files with 1039 additions and 94 deletions
|
@ -2,7 +2,7 @@ import { CONFIG, REMOTE_SCHEME } from '../../initializers'
|
|||
import { sanitizeHost } from '../core-utils'
|
||||
import { exists } from './misc'
|
||||
|
||||
function isWebfingerResourceValid (value: string) {
|
||||
function isWebfingerLocalResourceValid (value: string) {
|
||||
if (!exists(value)) return false
|
||||
if (value.startsWith('acct:') === false) return false
|
||||
|
||||
|
@ -17,5 +17,5 @@ function isWebfingerResourceValid (value: string) {
|
|||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
isWebfingerResourceValid
|
||||
isWebfingerLocalResourceValid
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue