]> git.mxchange.org Git - friendica.git/blobdiff - mod/share.php
Frost-mobile: media query in css for tablets
[friendica.git] / mod / share.php
index 08c63105e35ed04175dce9e1b4c470d1dd838074..761220ad7fca94509f6a4d7cf3619d8eaacff821 100644 (file)
@@ -15,7 +15,7 @@ function share_init(&$a) {
                intval($post_id),
                intval(local_user())
        );
-       if(! count($r) || ($r[0]['private'] && ($r[0]['network'] != NETWORK_FEED)))
+       if(! count($r) || ($r[0]['private'] == 1))
                killme();
 
        $o = '';
@@ -23,7 +23,9 @@ function share_init(&$a) {
        $o .= "\xE2\x99\xb2" . ' [url=' . $r[0]['author-link'] . ']' . $r[0]['author-name'] . '[/url]' . "\n";
        if($r[0]['title'])
                $o .= '[b]' . $r[0]['title'] . '[/b]' . "\n";
-       $o .= $r[0]['body'] . "\n";
+       $o .= $r[0]['body'] . "\n" ;
+
+       $o .= (($r[0]['plink']) ? '[url=' . $r[0]['plink'] . ']' . t('link') . '[/url]' . "\n" : '');
 
        echo $o;
        killme();