X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Feditpost.php;h=c1c0d16d7fd712497476e6c7742a23624dac119d;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=1e53285830dd5d2d272cc8182076bd878a704999;hpb=a939581cf8a07fe06f203582e0b3325076ea9703;p=friendica.git diff --git a/mod/editpost.php b/mod/editpost.php index 1e53285830..c1c0d16d7f 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -2,10 +2,9 @@ /** * @file mod/editpost.php */ + use Friendica\App; use Friendica\Content\Feature; -use Friendica\Core\Addon; -use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Renderer; @@ -64,25 +63,6 @@ function editpost_content(App $a) $jotplugins = ''; $jotnets = ''; - $mail_disabled = ((function_exists('imap_open') && !Config::get('system', 'imap_disabled')) ? 0 : 1); - - $mail_enabled = false; - $pubmail_enabled = false; - - if (!$mail_disabled) { - $r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1", - intval(local_user()) - ); - - if (DBA::isResult($r)) { - $mail_enabled = true; - - if (intval($r[0]['pubmail'])) { - $pubmail_enabled = true; - } - } - } - Hook::callAll('jot_tool', $jotplugins); $tpl = Renderer::getMarkupTemplate("jot.tpl");