Ver a proveniência

Merge pull request #482 from writefreely/rel-nofollow

Remove rel=nofollow attribute in certain situations
pull/695/merge
Matt Baer há 7 meses
committed by GitHub
ascendente
cometimento
299686c13e
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 2 adições e 2 eliminações
  1. +2
    -2
      postrender.go

+ 2
- 2
postrender.go Ver ficheiro

@@ -120,7 +120,7 @@ func (p *PublicPost) augmentReadingDestination() {
}

func applyMarkdown(data []byte, baseURL string, cfg *config.Config) string {
return applyMarkdownSpecial(data, false, baseURL, cfg)
return applyMarkdownSpecial(data, baseURL, cfg, cfg.App.SingleUser)
}

func disableYoutubeAutoplay(outHTML string) string {
@@ -142,7 +142,7 @@ func disableYoutubeAutoplay(outHTML string) string {
return outHTML
}

func applyMarkdownSpecial(data []byte, skipNoFollow bool, baseURL string, cfg *config.Config) string {
func applyMarkdownSpecial(data []byte, baseURL string, cfg *config.Config, skipNoFollow bool) string {
mdExtensions := 0 |
blackfriday.EXTENSION_TABLES |
blackfriday.EXTENSION_FENCED_CODE |


Carregando…
Cancelar
Guardar