more work on share/repeat

This commit is contained in:
zotlabs 2019-02-06 19:26:28 -08:00
parent 29c1797493
commit 96a4fc7ca2

View File

@ -3,6 +3,7 @@ namespace Zotlabs\Module;
use App; use App;
use Zotlabs\Daemon\Master; use Zotlabs\Daemon\Master;
use Zotlabs\Lib\Activity;
require_once('include/security.php'); require_once('include/security.php');
@ -98,7 +99,7 @@ class Share extends \Zotlabs\Web\Controller {
$arr['parent_mid'] = $item['mid']; $arr['parent_mid'] = $item['mid'];
$mention = '@[zrl=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/zrl]'; $mention = '@[zrl=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/zrl]';
$arr['body'] = sprintf( t('🔁 Repeated %1$s\'s %2$s'), $mention, $item['obj_type']); $arr['body'] = sprintf( t('🔁 Repeated %1$s\'s %2$s'), $mention, Activity::activity_obj_mapper($item['obj_type']));
$arr['author_xchan'] = $channel['channel_hash']; $arr['author_xchan'] = $channel['channel_hash'];
$arr['owner_xchan'] = $item['author_xchan']; $arr['owner_xchan'] = $item['author_xchan'];