Skip to content

Commit

Permalink
creator function change
Browse files Browse the repository at this point in the history
  • Loading branch information
rssbhargaw committed May 31, 2017
1 parent 98ade29 commit d77b195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Quintype/Seo/Story.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
],
Expand Down Expand Up @@ -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 '';
}
}

Expand Down

0 comments on commit d77b195

Please sign in to comment.