mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 08:15:18 +00:00
25 lines
571 B
PHP
25 lines
571 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Module;
|
|
|
|
use Zotlabs\Lib\Apps;
|
|
use Zotlabs\Lib\Libsync;
|
|
use Zotlabs\Web\Controller;
|
|
|
|
class Expire extends Controller {
|
|
|
|
|
|
function get() {
|
|
|
|
$desc = t('This app allows you to set an optional expiration date/time for posts, after which they will be deleted. This must be at least fifteen minutes into the future.');
|
|
|
|
$text = '<div class="section-content-info-wrapper">' . $desc . '</div>';
|
|
|
|
if(! ( local_channel() && Apps::system_app_installed(local_channel(),'Expire Posts'))) {
|
|
return $text;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|