aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-04 21:02:44 -0700
committerzotlabs <mike@macgirvin.com>2017-09-04 21:02:44 -0700
commit05654e498034329759351c4a64349734ce6b7204 (patch)
tree33ae0b4ac6392f72540a9f9db1c1c1c45c48e659 /include/bbcode.php
parentba4f75ba1976a1306ba96c4d5bffc8728d4fc23b (diff)
downloadvolse-hubzilla-05654e498034329759351c4a64349734ce6b7204.tar.gz
volse-hubzilla-05654e498034329759351c4a64349734ce6b7204.tar.bz2
volse-hubzilla-05654e498034329759351c4a64349734ce6b7204.zip
card embed improved
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 470854f06..9a2a6eb9b 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -327,11 +327,16 @@ function bb_ShareAttributes($match) {
if ($avatar != "")
$headline .= '<a href="' . zid($profile) . '" ><img src="' . $avatar . '" alt="' . $author . '" height="32" width="32" /></a>';
+ if(strpos($link,'/cards/'))
+ $type = t('card');
+ else
+ $type = t('post');
+
// Bob Smith wrote the following post 2 hours ago
$fmt = sprintf( t('%1$s wrote the following %2$s %3$s'),
'<a href="' . zid($profile) . '" >' . $author . '</a>',
- '<a href="' . zid($link) . '" >' . t('post') . '</a>',
+ '<a href="' . zid($link) . '" >' . $type . '</a>',
$reldate
);