1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Support mailto links for custom markup

This commit is contained in:
Chocobozzz 2023-01-19 14:52:27 +01:00
parent a4927884b2
commit 789ba34931
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 74 additions and 59 deletions

View file

@ -7,6 +7,11 @@ import { peertubeTranslate } from '@shared/core-utils/i18n'
import { About } from '@shared/models'
import { environment } from '../../../environments/environment'
export type AboutHTML = Pick<About['instance'],
'terms' | 'codeOfConduct' | 'moderationInformation' | 'administrator' | 'creationReason' |
'maintenanceLifetime' | 'businessModel' | 'hardwareInformation'
>
@Injectable()
export class InstanceService {
private static BASE_CONFIG_URL = environment.apiUrl + '/api/v1/config'
@ -39,7 +44,7 @@ export class InstanceService {
}
async buildHtml (about: About) {
const html = {
const html: AboutHTML = {
terms: '',
codeOfConduct: '',
moderationInformation: '',