diff --git a/FEDERATION.md b/FEDERATION.md index d911e9abc..f5882b0b2 100644 --- a/FEDERATION.md +++ b/FEDERATION.md @@ -50,3 +50,6 @@ Announce Announce and relay activities are supported on the inbound side but are not generated. Instead a new message is generated with an embedded rendering of the shared content as the message content. This message may (should) contain additional commentary in order to comply with the Fair Use provisions of copyright law. +Mastodon Custom Emojis + +Mastodon Custom Emojis are only supported for post content. Display names and message titles are considered text only fields and embedded images (the mechanism behind custom emojis) are not supported in these locations. \ No newline at end of file diff --git a/Zotlabs/Module/Admin/Channels.php b/Zotlabs/Module/Admin/Channels.php index d3f1d3fe9..7b0c06bbb 100644 --- a/Zotlabs/Module/Admin/Channels.php +++ b/Zotlabs/Module/Admin/Channels.php @@ -2,12 +2,14 @@ namespace Zotlabs\Module\Admin; +use App; use Zotlabs\Daemon\Master; /** * @brief Admin Module for Channels. * */ + class Channels { /** @@ -118,13 +120,13 @@ class Channels { $total = q("SELECT count(*) as total FROM channel where channel_removed = 0 and channel_system = 0"); if($total) { - \App::set_pager_total($total[0]['total']); - \App::set_pager_itemspage(100); + App::set_pager_total($total[0]['total']); + App::set_pager_itemspage(100); } $channels = q("SELECT * from channel where channel_removed = 0 and channel_system = 0 order by $key $dir limit %d offset %d ", - intval(\App::$pager['itemspage']), - intval(\App::$pager['start']) + intval(App::$pager['itemspage']), + intval(App::$pager['start']) ); if($channels) { @@ -138,11 +140,18 @@ class Channels { $channels[$x]['allowcode'] = true; else $channels[$x]['allowcode'] = false; + + $channels[$x]['channel_link'] = z_root() . '/channel/' . $channels[$x]['channel_address']; } } - $t = get_markup_template('admin_channels.tpl'); - $o = replace_macros($t, array( +logger('channels1: ' . print_r($channels,true)); + + call_hooks('admin_channels',$channels); + +logger('channels2: ' . print_r($channels,true)); + + $o = replace_macros(get_markup_template('admin_channels.tpl'), [ // strings // '$title' => t('Administration'), '$page' => t('Channels'), @@ -169,7 +178,7 @@ class Channels { // values // '$baseurl' => z_root(), '$channels' => $channels, - )); + ]); $o .= paginate($a); return $o; diff --git a/Zotlabs/Module/Sudo.php b/Zotlabs/Module/Sudo.php deleted file mode 100644 index fd56a21f6..000000000 --- a/Zotlabs/Module/Sudo.php +++ /dev/null @@ -1,34 +0,0 @@ - {{$c.channel_id}} - {{$c.channel_name}} + {{$c.channel_name}} {{$c.channel_address}}