UPDATES EasyBlog 6.0.11 Released! Update to the latest version 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 offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

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