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:
parent
a4927884b2
commit
789ba34931
5 changed files with 74 additions and 59 deletions
|
@ -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: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue