aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-08-26 19:09:00 +0100
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-08-26 19:09:00 +0100
commitcc2bef67dd17ac2d9352442aeac39963470ba67f (patch)
tree9d618617f54acf198cea3b83ea5b5c525d83d25b
parentc99d89e441c742ceaaa299c9de9c2fb322b41993 (diff)
downloadvolse-hubzilla-cc2bef67dd17ac2d9352442aeac39963470ba67f.tar.gz
volse-hubzilla-cc2bef67dd17ac2d9352442aeac39963470ba67f.tar.bz2
volse-hubzilla-cc2bef67dd17ac2d9352442aeac39963470ba67f.zip
HTML doesn't work without ACCOUNT_ROLE_ALLOWCODE, so don't offer it
as an option.
-rwxr-xr-xinclude/text.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index d3d8b84a6..42fad13b5 100755
--- a/include/text.php
+++ b/include/text.php
@@ -1552,7 +1552,6 @@ function mimetype_select($channel_id, $current = 'text/bbcode') {
$x = array(
'text/bbcode',
- 'text/html',
'text/markdown',
'text/plain'
);
@@ -1564,8 +1563,10 @@ function mimetype_select($channel_id, $current = 'text/bbcode') {
if($r) {
if($r[0]['account_roles'] & ACCOUNT_ROLE_ALLOWCODE) {
- if(local_user() && get_account_id() == $r[0]['account_id'])
+ if(local_user() && get_account_id() == $r[0]['account_id']) {
+ $x[] = 'text/html';
$x[] = 'application/x-php';
+ }
}
}