Skip to content

Commit 7b2de04

Browse files
committed
fix: ogp debug page forces secure image url
1 parent 0df2780 commit 7b2de04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

resources/views/og-preview.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<html lang="en">
33

44
@php
5-
$thumbnail_url = str_replace('http://', 'https://', $thumbnail_url ?? '');
6-
$raw = str_replace('http://', 'https://', $raw ?? '');
5+
$thumbnail_url = str_replace('http://', config('app.scheme'). '://', $thumbnail_url ?? '');
6+
$raw = str_replace('http://', config('app.scheme'). '://', $raw ?? '');
77
88
function highlight_json($json) {
99
$json = e($json); // escape for HTML safety

0 commit comments

Comments
 (0)