This repository was archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Meta (Facebook sharing) for albums #179
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
As discussed on Gitter I would like to incorporate the meta data for albums, specifically i would like the info to show up for facebook shares, but when fb works, they all should.
As i understand, the meta for photos work, due to a view.php. However, albums use pure js.
I have made a workaround in getGraphHeader.php that works great, but getting the album to display via query string, is going to require some js tweaks.
function getGraphHeader($theID,$getType) {
// allow album data
if ($getType == 'album'){
$query = Database::prepare(Database::get(), "SELECT id FROM ? WHERE album = '?' LIMIT 1", array(LYCHEE_TABLE_PHOTOS, $theID));
$result = Database::execute(Database::get(), $query, __METHOD__, __LINE__);
if ($result===false) return false;
$row = $result->fetch_object();
$photoID = $row->id;
} else {
$photoID = $theID;
}
$photo = new Photo($photoID);
// continue codeAdditionally, using a query string and js clutters the address bar when navigating.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request