mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 23:55:16 +00:00
31 lines
709 B
PHP
31 lines
709 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Module;
|
|
|
|
use Zotlabs\Lib\Apps;
|
|
use Zotlabs\Lib\Libsync;
|
|
use Zotlabs\Web\Controller;
|
|
|
|
class Drafts extends Controller
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
if (local_channel() && Apps::system_app_installed(local_channel(), 'Drafts')) {
|
|
goaway(z_root() . '/stream/?draft=1');
|
|
}
|
|
}
|
|
|
|
|
|
public function get()
|
|
{
|
|
|
|
$desc = t('This app allows you to save posts you are writing and finish them later prior to sharing/publishing.');
|
|
|
|
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
|
|
|
|
if (!(local_channel() && Apps::system_app_installed(local_channel(), 'Drafts'))) {
|
|
return $text;
|
|
}
|
|
}
|
|
}
|