{"action":"created","issue":{"url":"https://api.github.com/repos/electerious/Lychee/issues/546","repository_url":"https://api.github.com/repos/electerious/Lychee","labels_url":"https://api.github.com/repos/electerious/Lychee/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/electerious/Lychee/issues/546/comments","events_url":"https://api.github.com/repos/electerious/Lychee/issues/546/events","html_url":"https://github.com/electerious/Lychee/issues/546","id":154439381,"number":546,"title":"\"Wrong\"-URLs in view.php (http vs. https)","user":{"login":"WulfmanGer","id":19263061,"avatar_url":"https://avatars.githubusercontent.com/u/19263061?v=3","gravatar_id":"","url":"https://api.github.com/users/WulfmanGer","html_url":"https://github.com/WulfmanGer","followers_url":"https://api.github.com/users/WulfmanGer/followers","following_url":"https://api.github.com/users/WulfmanGer/following{/other_user}","gists_url":"https://api.github.com/users/WulfmanGer/gists{/gist_id}","starred_url":"https://api.github.com/users/WulfmanGer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WulfmanGer/subscriptions","organizations_url":"https://api.github.com/users/WulfmanGer/orgs","repos_url":"https://api.github.com/users/WulfmanGer/repos","events_url":"https://api.github.com/users/WulfmanGer/events{/privacy}","received_events_url":"https://api.github.com/users/WulfmanGer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electerious/Lychee/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/electerious/Lychee/labels/help%20wanted","name":"help wanted","color":"009800"},{"url":"https://api.github.com/repos/electerious/Lychee/labels/low%20priority","name":"low priority","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-12T09:40:16Z","updated_at":"2016-05-31T18:39:31Z","closed_at":null,"body":"Hi\r\n\r\nview.php -> Meta-Tags for OGP etc.:\r\n\r\ngetGraphHeader.php\r\n$parseUrl = parse_url('http://'  <- only http:// - what happend with https? My Pages uses only https ... ok 301-Redirect ... It would be nice if here automatically selects the correct protocol. I've changed this manualy - until next update ... ;)\r\n\r\nThx\r\nWulfman\r\n"},"comment":{"url":"https://api.github.com/repos/electerious/Lychee/issues/comments/222780883","html_url":"https://github.com/electerious/Lychee/issues/546#issuecomment-222780883","issue_url":"https://api.github.com/repos/electerious/Lychee/issues/546","id":222780883,"user":{"login":"qligier","id":3299399,"avatar_url":"https://avatars.githubusercontent.com/u/3299399?v=3","gravatar_id":"","url":"https://api.github.com/users/qligier","html_url":"https://github.com/qligier","followers_url":"https://api.github.com/users/qligier/followers","following_url":"https://api.github.com/users/qligier/following{/other_user}","gists_url":"https://api.github.com/users/qligier/gists{/gist_id}","starred_url":"https://api.github.com/users/qligier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qligier/subscriptions","organizations_url":"https://api.github.com/users/qligier/orgs","repos_url":"https://api.github.com/users/qligier/repos","events_url":"https://api.github.com/users/qligier/events{/privacy}","received_events_url":"https://api.github.com/users/qligier/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T18:39:31Z","updated_at":"2016-05-31T18:39:31Z","body":"Or you could just delete the scheme from the url (aka protocol-relative url):\r\n```php\r\n$url      = '//' . $parseUrl['host'] . $parseUrl['path'] . '?' . $parseUrl['query'];\r\n$picture  = '//' . $parseUrl['host'] . $parseUrl['path'] . '/../uploads/' . $dir . '/' . $row->url;\r\n```\r\nhttps://github.com/electerious/Lychee/blob/master/php/helpers/getGraphHeader.php#L27-28\r\n"}}
{"actor":{"display_login":"qligier"}}