ref: ffcf26e68cac843f8b257ee72f0282f405ad04a8
parent: 9753cb59f1f1d866943a485dd7c917d1b68f6eda
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Thu May 24 09:03:23 EDT 2018
Fix broken test
--- a/tpl/tplimpl/embedded/templates.autogen.go
+++ b/tpl/tplimpl/embedded/templates.autogen.go
@@ -365,8 +365,8 @@
{{- end -}}`}, {`shortcodes/twitter.html`, `{{- $pc := .Page.Site.Config.Privacy.Twitter -}} {{- if not $pc.Disable -}}-{{ $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT }}-{{ $json := getJSON $url }}+{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT -}}+{{- $json := getJSON $url -}} {{ $json.html | safeHTML }} {{- end -}}`}, {`shortcodes/vimeo.html`, `{{- $pc := .Page.Site.Config.Privacy.Vimeo -}}--- a/tpl/tplimpl/embedded/templates/shortcodes/twitter.html
+++ b/tpl/tplimpl/embedded/templates/shortcodes/twitter.html
@@ -1,6 +1,6 @@
{{- $pc := .Page.Site.Config.Privacy.Twitter -}} {{- if not $pc.Disable -}}-{{ $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT }}-{{ $json := getJSON $url }}+{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT -}}+{{- $json := getJSON $url -}} {{ $json.html | safeHTML }} {{- end -}}\ No newline at end of file
--
⑨