aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-22 01:29:55 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-03-22 01:29:55 -0400
commit8e29669b81f8df724bb77e2e2b6eff330a17cbec (patch)
tree4c1aa63a36eeaadab00c61eb05f3f9f5ae0da095 /mod
parentbe50cc03b8b997a3b073c3627f371bd16b82eaa5 (diff)
parentd81256d7b051d9a76b087feeb64ac79fb4aeff4d (diff)
downloadvolse-hubzilla-8e29669b81f8df724bb77e2e2b6eff330a17cbec.tar.gz
volse-hubzilla-8e29669b81f8df724bb77e2e2b6eff330a17cbec.tar.bz2
volse-hubzilla-8e29669b81f8df724bb77e2e2b6eff330a17cbec.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: support lowercase :-p smilie work around doubled linefeeds in tinymce3.5b2 add icons to aside diabook, fixes in css revert permissions relaxation on community add comix-plain smooth the comix comment box make autocomplete work with updated tinymce ika to ica private file in repository facepark is unsupported ATM remove stray template variable from old code add comix theme use password field for DB input added Vijay's theme from facepark.in added README to mcefixes to explain what is going on. update tinymce to 3.5b2 to fix issues with FF 11 and pasting into code blocks more friend suggestions * master:
Diffstat (limited to 'mod')
-rwxr-xr-xmod/community.php4
-rwxr-xr-xmod/item.php10
2 files changed, 12 insertions, 2 deletions
diff --git a/mod/community.php b/mod/community.php
index cf459617e..f8cc3305b 100755
--- a/mod/community.php
+++ b/mod/community.php
@@ -50,7 +50,7 @@ function community_content(&$a, $update = 0) {
WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 and `item`.`moderated` = 0
AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = ''
AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = ''
- AND `item`.`private` = 0 AND `user`.`hidewall` = 0
+ AND `item`.`private` = 0 AND `item`.`wall` = 1 AND `user`.`hidewall` = 0
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 "
);
@@ -72,7 +72,7 @@ function community_content(&$a, $update = 0) {
WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 and `item`.`moderated` = 0
AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = ''
AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = ''
- AND `item`.`private` = 0 AND `user`.`hidewall` = 0
+ AND `item`.`private` = 0 AND `item`.`wall` = 1 AND `user`.`hidewall` = 0
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
ORDER BY `received` DESC LIMIT %d, %d ",
intval($a->pager['start']),
diff --git a/mod/item.php b/mod/item.php
index fe570075f..ee6c5c9a7 100755
--- a/mod/item.php
+++ b/mod/item.php
@@ -243,6 +243,7 @@ function item_post(&$a) {
}
+
if(! strlen($body)) {
if($preview)
killme();
@@ -253,6 +254,15 @@ function item_post(&$a) {
}
}
+ // 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')) : 0);
+ if((! $parent) && (! $api_source) && (! $plaintext)) {
+ $body = str_replace("\r\n","\n",$body);
+ $body = str_replace("\n\n","\n",$body);
+ }
// get contact info for poster