diff --git a/serendipity_event_social/ChangeLog b/serendipity_event_social/ChangeLog index c19167c5..7d26704d 100644 --- a/serendipity_event_social/ChangeLog +++ b/serendipity_event_social/ChangeLog @@ -1,7 +1,8 @@ 0.12: * Ignore smileys graphics for og:image * Use entry picture from the timeline theme if set - + * Use entry picture from the photo theme if set + 0.11: * Re-use description set in the metadesc-plugin diff --git a/serendipity_event_social/serendipity_event_social.php b/serendipity_event_social/serendipity_event_social.php index 063bd61d..27f0f483 100644 --- a/serendipity_event_social/serendipity_event_social.php +++ b/serendipity_event_social/serendipity_event_social.php @@ -162,6 +162,8 @@ class serendipity_event_social extends serendipity_event { $social_image = $this->get_config('social_image', ''); if (isset($entry['properties']) && isset($entry['properties']['timeline_image'])) { $social_image = $entry['properties']['timeline_image']; + } else if (isset($entry['properties']) && isset($entry['properties']['ep_featuredImage'])) { + $social_image = $entry['properties']['ep_featuredImage']; } else { // This is searching for the first image in an entry to use as facebook article image. // A better approach would be to register in the entry editor when an image was added