require_once('include/diaspora.php');
require_once('include/Contact.php');
-function item_post(App &$a) {
+function item_post(App $a) {
if((! local_user()) && (! remote_user()) && (! x($_REQUEST,'commenter')))
return;
$categories .= file_tag_list_to_file($filedas, 'file');
}
- // Work around doubled linefeeds in Tinymce 3.5b2
- // First figure out if it's a status post that would've been
- // created using tinymce. Otherwise leave it alone.
-
-/* $plaintext = (local_user() ? intval(get_pconfig(local_user(),'system','plaintext')) || !feature_enabled($profile_uid,'richtext') : 0);
- if((! $parent) && (! $api_source) && (! $plaintext)) {
- $body = fix_mce_lf($body);
- }*/
- $plaintext = (local_user() ? !feature_enabled($profile_uid,'richtext') : 0);
- if((! $parent) && (! $api_source) && (! $plaintext)) {
- $body = fix_mce_lf($body);
- }
-
-
// get contact info for poster
$author = null;
-function item_content(App &$a) {
+function item_content(App $a) {
if ((! local_user()) && (! remote_user())) {
return;