UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Incorrect Twitter Description Meta

Jody Dundas · ·
11:06 PM Wednesday, 17 April 2019
Low
I've discovered a bug where the Meta description isn't being used for the twitter:description meta. This appears in the latest version and back to at least 5.2.10.

In administrator/components/com_easyblog/includes/twitter/twitter.php, line 69:


// Retrieve the stored meta for the blog post
$meta = $blog->loadMeta();

// If there's a meta set for the blog, use the stored meta version
$description = !empty($meta->description) ? $meta->description : $blog->getIntro();


EasyBlogPost->loadMeta() doesn't return the meta, but sets it to the instance's meta property. that condition in the ternary will always fail as $meta is null.

A simple change, much like in administrator/components/com_easyblog/includes/facebook/facebook.php:


// Retrieve the stored meta for the blog post
$meta = $blog->loadMeta();

// If there's a meta set for the blog, use the stored meta version
$description = !empty($blog->description) ? $blog->description : $blog->getIntro();
The replies under this section are restricted to logged in users or users with an active subscription with us