diff --git a/content/news/222-hacktoberfest-2019.md b/content/news/222-hacktoberfest-2019.md index ad99fc57..793c1e55 100644 --- a/content/news/222-hacktoberfest-2019.md +++ b/content/news/222-hacktoberfest-2019.md @@ -3,6 +3,7 @@ author: jeremy-kauffman title: 'Hacktoberfest 2019!' date: '2019-10-01 11:37:00' cover: 'Hacktoberfest.jpg' +og: 'https://spee.ch/@lbryblog:e/hacktoberfest2019.png' category: developers --- @@ -44,12 +45,14 @@ Note: the chat link goes to LBRY’s main public chat. Post a message in binary* Anyone who makes any contribution at all, even a one line typo fix, will receive a LBRY sticker. -Anyone who contributes anything of any substance* will receive a LBRY T-Shirt. +Anyone who contributes anything of any substance* will receive a sticker, LBRY t-shirt, and more. -As always, anyone who contributes will receive LBC as [appreciation](https://lbry.com/faq/appreciation). +And as always, anyone who contributes will receive LBC as [appreciation](https://lbry.com/faq/appreciation). Additionally, this month only, every contributor, new or returning, will receive a 10,000 LBC bonus for their first PR of this month. +T-shirts and stickers will be the above Hacktoberfest image. + *We’re going to be very inclusive as counting PRs as substantive, but due to some people making drive-by PRs to earn shirts, we’ve introduced this additional qualifier. ## Events diff --git a/model/Post.class.php b/model/Post.class.php index f6f17afe..72f089da 100644 --- a/model/Post.class.php +++ b/model/Post.class.php @@ -309,6 +309,11 @@ class Post { $urls = []; + $metadata = $this->getMetadata(); + if (isset($metadata['og']) && $metadata['og']) { + $urls[] = $metadata['og']; + } + $cover = $this->getCover(); if ($cover) { $urls[] = 'https://' . Request::getHost() . '/img/blog-covers/' . $cover; @@ -321,7 +326,7 @@ class Post $urls = array_merge($urls, $matches[1]); } - return $urls; + return array_unique($urls); } protected function markdownToText($markdown) diff --git a/view/template/layout/basic.php b/view/template/layout/basic.php index 4ee79ec0..457ec062 100644 --- a/view/template/layout/basic.php +++ b/view/template/layout/basic.php @@ -43,8 +43,6 @@ - -