aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-02-06 17:26:09 -0800
committerzotlabs <mike@macgirvin.com>2019-02-06 17:26:09 -0800
commit29c1797493f44d2677cab9b35ce6d879f020a15e (patch)
treed3b4531fc527eecea9acf5e6ebc4ae35cbd327da /Zotlabs/Lib
parent518ceb53a8de5b4ee375947721d56f7a43621a61 (diff)
downloadvolse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.tar.gz
volse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.tar.bz2
volse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.zip
work on repeat/share for Hubzilla
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php2
-rw-r--r--Zotlabs/Lib/ThreadItem.php7
2 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 259419f54..bcbe53df7 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -236,7 +236,7 @@ class Activity {
$ret['id'] = ((strpos($i['mid'],'http') === 0) ? $i['mid'] : z_root() . '/item/' . urlencode($i['mid']));
if($i['title'])
- $ret['title'] = bbcode($i['title']);
+ $ret['name'] = $i['title'];
$ret['published'] = datetime_convert('UTC','UTC',$i['created'],ATOM_TIME);
if($i['created'] !== $i['edited'])
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 83d243177..6c4deea27 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -293,8 +293,10 @@ class ThreadItem {
$dislike = array( t("I don't like this \x28toggle\x29"), t("dislike"));
}
- if ($shareable)
- $share = array( t('Share This'), t('share'));
+ if ($shareable) {
+ $share = array( t('Repeat This'), t('repeat'));
+ $embed = array( t('Share This'), t('share'));
+ }
$dreport = '';
@@ -408,6 +410,7 @@ class ThreadItem {
'like' => $like,
'dislike' => ((feature_enabled($conv->get_profile_owner(),'dislike')) ? $dislike : ''),
'share' => $share,
+ 'embed' => $embed,
'rawmid' => $item['mid'],
'plink' => get_plink($item),
'edpost' => $edpost, // ((feature_enabled($conv->get_profile_owner(),'edit_posts')) ? $edpost : ''),