]> BookStack Code Mirror - bookstack/commit
Reviewed #2393, Removed image guessing and added testing
authorDan Brown <redacted>
Wed, 23 Jun 2021 19:42:48 +0000 (20:42 +0100)
committerDan Brown <redacted>
Wed, 23 Jun 2021 19:42:48 +0000 (20:42 +0100)
commit265f5db03f3f08665bb113191f83c49e5dae53a7
treeaf0a25d74c5b51dc9f6870c939874c14efe8e352
parent58fa7679bccafd00f9a50bcd4a87e96876331b03
Reviewed #2393, Removed image guessing and added testing

For review of meta tag additions as per PR #2393.
This commit removes any image guesswork and only uses images that have
been set by the author for the specific content.
This also adds tests to cover the expected OG tags.
app/Entities/Models/Page.php
app/Entities/Tools/PageContent.php
resources/views/books/show.blade.php
resources/views/chapters/show.blade.php
resources/views/pages/show.blade.php
resources/views/shelves/show.blade.php
tests/OpenGraphTest.php [new file with mode: 0644]