Update of /cvsroot/php-blog/additional_plugins/serendipity_event_social
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4343/serendipity_event_social
Modified Files:
ChangeLog serendipity_event_social.php
Log Message:
gitclone.sh autocommit
Index: serendipity_event_social.php
===================================================================
RCS file: /cvsroot/php-blog/additional_plugins/serendipity_event_social/serendipity_event_social.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- serendipity_event_social.php 8 Sep 2016 20:33:04 -0000 1.8
+++ serendipity_event_social.php 17 May 2017 20:38:24 -0000 1.9
@@ -16,7 +16,7 @@
$propbag->add('description', PLUGIN_EVENT_SOCIAL_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'onli, Matthias Mees, Thomas Hochstein');
- $propbag->add('version', '0.12');
+ $propbag->add('version', '0.12.1');
$propbag->add('requirements', array(
'serendipity' => '2.0'
));
@@ -149,7 +149,7 @@
echo '<meta name="twitter:card" content="summary" />' . "\n";
echo '<meta property="og:title" content="' . serendipity_specialchars($entry['title']) . '" />' . "\n";
# get desciption from serendipity_event_metadesc, if set; take first 200 chars from body otherwise
- $meta_description = strip_tags($GLOBALS['entry'][0]['properties']['meta_description']);
+ $meta_description = strip_tags($entry['properties']['meta_description']);
if (empty($meta_description)) {
# /\s+/: multiple newline and whitespaces
$meta_description = trim(preg_replace('/\s+/', ' ', substr(strip_tags($entry['body']), 0, 200))) . '...';
Index: ChangeLog
===================================================================
RCS file: /cvsroot/php-blog/additional_plugins/serendipity_event_social/ChangeLog,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ChangeLog 8 Sep 2016 20:33:04 -0000 1.7
+++ ChangeLog 17 May 2017 20:38:23 -0000 1.8
@@ -1,3 +1,6 @@
+0.12.1:
+ * Fix use of description from the metadesc-plugin
+
0.12:
* Ignore smileys graphics for og:image
* Use entry picture from the timeline theme if set
|