aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Share.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-15 17:51:24 -0700
committerzotlabs <mike@macgirvin.com>2018-03-15 17:51:24 -0700
commit91b710b07d5fc2b48b5d56d1801a36532008d1e9 (patch)
tree02a78ba2053a839944487a59951b5fcdaf53eb5a /Zotlabs/Lib/Share.php
parent34fee2a7909674ced6aea91e60f8ff77e8345e8b (diff)
downloadvolse-hubzilla-91b710b07d5fc2b48b5d56d1801a36532008d1e9.tar.gz
volse-hubzilla-91b710b07d5fc2b48b5d56d1801a36532008d1e9.tar.bz2
volse-hubzilla-91b710b07d5fc2b48b5d56d1801a36532008d1e9.zip
add auth flag to share attributes so we can make a costly determination to use zid at post submission time instead of making multiple calls to is_matrix_url() at render time
Diffstat (limited to 'Zotlabs/Lib/Share.php')
-rw-r--r--Zotlabs/Lib/Share.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/Zotlabs/Lib/Share.php b/Zotlabs/Lib/Share.php
index b5341e662..e9e4d23c4 100644
--- a/Zotlabs/Lib/Share.php
+++ b/Zotlabs/Lib/Share.php
@@ -123,11 +123,13 @@ class Share {
$bb = substr($this->item['body'], $pos);
} else {
$bb = "[share author='".urlencode($this->item['author']['xchan_name']).
- "' profile='".$this->item['author']['xchan_url'] .
- "' avatar='".$this->item['author']['xchan_photo_s'].
- "' link='".$this->item['plink'].
- "' posted='".$this->item['created'].
- "' message_id='".$this->item['mid']."']";
+ "' profile='" . $this->item['author']['xchan_url'] .
+ "' avatar='" . $this->item['author']['xchan_photo_s'] .
+ "' link='" . $this->item['plink'] .
+ "' auth='" . (($this->item['author']['network'] === 'zot') ? 'true' : 'false') .
+ "' posted='" . $this->item['created'] .
+ "' message_id='" . $this->item['mid'] .
+ "']";
if($this->item['title'])
$bb .= '[b]'.$this->item['title'].'[/b]'."\r\n";
$bb .= (($is_photo) ? $photo_bb . "\r\n" . $this->item['body'] : $this->item['body']);