ActivityPub-federated video streaming platform using P2P directly in your web browser
Support rel="me" links in markdown
Chocobozzz891bc2ffadd5
diff --git a/client/src/app/+admin/config/shared/batch-domains-validators.service.ts b/client/src/app/+admin/config/shared/batch-domains-validators.service.tsindex 154ef3a23a..46fa6514d7 100644--- a/client/src/app/+admin/config/shared/batch-domains-validators.service.ts+++ b/client/src/app/+admin/config/shared/batch-domains-validators.service.ts@@ -1,7 +1,7 @@import { I18n } from '@ngx-translate/i18n-polyfill'import { Validators, ValidatorFn } from '@angular/forms'import { Injectable } from '@angular/core'-import { BuildFormValidator, validateHost } from '@app/shared'+import { BuildFormValidator, validateHost } from '@app/shared/forms/form-validators'@Injectable()export class BatchDomainsValidatorsService {diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.tsindex b4ed56cbe4..039fd6ff1e 100644--- a/client/src/app/core/plugins/plugin.service.ts+++ b/client/src/app/core/plugins/plugin.service.ts@@ -12,7 +12,8 @@ import { ClientHook, ClientHookName, clientHookObject } from '@shared/models/pluimport { PluginClientScope } from '@shared/models/plugins/plugin-client-scope.type'import { RegisterClientHookOptions } from '@shared/models/plugins/register-client-hook.model'import { HttpClient } from '@angular/common/http'-import { AuthService, Notifier } from '@app/core'+import { AuthService } from '@app/core/auth'+import { Notifier } from '@app/core/notification'import { RestExtractor } from '@app/shared/rest'import { PluginType } from '@shared/models/plugins/plugin.type'import { PublicServerSetting } from '@shared/models/plugins/public-server.setting'diff --git a/client/src/app/shared/renderer/html-renderer.service.ts b/client/src/app/shared/renderer/html-renderer.service.tsindex 94a8aa4c65..1ddd8fe2f9 100644--- a/client/src/app/shared/renderer/html-renderer.service.ts+++ b/client/src/app/shared/renderer/html-renderer.service.ts@@ -19,15 +19,18 @@ export class HtmlRendererService {allowedTags: [ 'a', 'p', 'span', 'br', 'strong', 'em', 'ul', 'ol', 'li' ],allowedSchemes: [ 'http', 'https' ],allowedAttributes: {- 'a': [ 'href', 'class', 'target' ]+ 'a': [ 'href', 'class', 'target', 'rel' ]},transformTags: {a: (tagName, attribs) => {+ let rel = 'noopener noreferrer'+ if (attribs.rel === 'me') rel += ' me'+return {tagName,attribs: Object.assign(attribs, {target: '_blank',- rel: 'noopener noreferrer'+ rel})}}