diff --git a/src/Quintype/Seo/Story.php b/src/Quintype/Seo/Story.php index d95b595..40082df 100644 --- a/src/Quintype/Seo/Story.php +++ b/src/Quintype/Seo/Story.php @@ -103,7 +103,7 @@ private function getTwitterAttributes() 'description' => trim($this->getDescription()), 'card' => 'summary_large_image', 'site' => $this->getTwitterSite(), - 'creator' => '@'.$this->getTwitterCreator(), + 'creator' => $this->getTwitterCreator(), 'image' => [ 'src' => $this->getHeroImageUrl(), ], @@ -131,9 +131,9 @@ private function getTwitterCreator() if ((isset($this->config['social-links']['twitter-url']))&&($this->config['social-links']['twitter-url'] !="")) { $creator = $this->config['social-links']['twitter-url']; $creator = explode('/', $creator); - return $creator[3]; + return '@'.$creator[3]; } else { - return 'creator'; + return ''; } }