Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
Signed-off-by: Khusika Dhamar Gusti <khusikadhamar@gmail.com>
  • Loading branch information
khusika committed Jan 19, 2025
1 parent cc6f657 commit 68437c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/shortcodes/oembed.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
{{- else if (eq $host "tweet") -}}
{{ $url := .Get 1 }}
{{- $dnt := $oe.twitter.enableDNT | default false -}}
{{ with resources.GetRemote "https://publish.twitter.com/oembed" "?url=" $url "&dnt=" $dnt }}
{{- $query := querify "url" $url "dnt" $dnt -}}
{{- $request := printf "https://publish.x.com/oembed?%s" $query -}}
{{ with resources.GetRemote $request }}
{{ (. | transform.Unmarshal).html | safeHTML }}
{{ end }}
{{- end -}}
Expand Down

0 comments on commit 68437c7

Please sign in to comment.