Nothing Special   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
it's a post only if non-empty path
Browse files Browse the repository at this point in the history
  • Loading branch information
tantek authored May 28, 2018
1 parent e0724fa commit 8762947
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cassis-lab.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ function auto_url_summary($u) {
}
// TBI: if $u has fragmention, synthesize quote from it
// per http://www.kevinmarks.com/mentionquote.html
return strcat(hostname_of_uri($u),'’s post');
return strcat(hostname_of_uri($u),
(path_of_uri($u)!='/') ? '’s post' : '');
}

?>
?>

0 comments on commit 8762947

Please sign in to comment.