Skip to content

Commit

Permalink
Limit title and link length
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq committed May 21, 2021
1 parent 9d0ec4c commit d7759e7
Show file tree
Hide file tree
Showing 2 changed files with 477 additions and 516 deletions.
4 changes: 2 additions & 2 deletions php/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ function hook_article_filter_action($article, $action) {
if ($this->has_pushed($article['link'])) return $article;

$params = array_merge(array(
'title' => $article['title'],
'link' => $article['link'],
'title' => mb_substr($article['title'], 0, 200),
'link' => mb_substr($article['link'], 0, 500),
'guid' => $article['guid_hashed'],
'uid' => $article['owner_uid'],
), $this->get_excerpt_img($article['content']));
Expand Down
Loading

0 comments on commit d7759e7

Please sign in to comment.