aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-19 03:06:15 -0800
committerfriendica <info@friendica.com>2011-11-19 03:06:15 -0800
commit72dd6457b014e504c79dbe494ac6095cadd9b942 (patch)
treef5d3a9e953bf51850ca9cbaeb0dff54ba6b180f7 /include/items.php
parent64635438326e34710138e3e270cb3bbfc55d76a1 (diff)
downloadvolse-hubzilla-72dd6457b014e504c79dbe494ac6095cadd9b942.tar.gz
volse-hubzilla-72dd6457b014e504c79dbe494ac6095cadd9b942.tar.bz2
volse-hubzilla-72dd6457b014e504c79dbe494ac6095cadd9b942.zip
first forum test
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php29
1 files changed, 14 insertions, 15 deletions
diff --git a/include/items.php b/include/items.php
index 381032629..caf497345 100644
--- a/include/items.php
+++ b/include/items.php
@@ -2033,13 +2033,12 @@ function local_delivery($importer,$data) {
$community = false;
-// if($importer['page-flags'] == PAGE_COMMUNITY) {
-// $sql_extra = '';
-// $community = true;
-// logger('local_delivery: community reply');
-// }
-// else
-
+ if($importer['page-flags'] == PAGE_COMMUNITY) {
+ $sql_extra = '';
+ $community = true;
+ logger('local_delivery: community reply');
+ }
+ else
$sql_extra = " and contact.self = 1 and item.wall = 1 ";
// was the top-level post for this reply written by somebody on this site?
@@ -2113,14 +2112,14 @@ function local_delivery($importer,$data) {
}
}
- if($community) {
- $newtag = '@[url=' . $a->get_baseurl() . '/profile/' . $importer['nickname'] . ']' . $importer['username'] . '[/url]';
- if(! stristr($datarray['tag'],$newtag)) {
- if(strlen($datarray['tag']))
- $datarray['tag'] .= ',';
- $datarray['tag'] .= $newtag;
- }
- }
+// if($community) {
+// $newtag = '@[url=' . $a->get_baseurl() . '/profile/' . $importer['nickname'] . ']' . $importer['username'] . '[/url]';
+// if(! stristr($datarray['tag'],$newtag)) {
+// if(strlen($datarray['tag']))
+// $datarray['tag'] .= ',';
+// $datarray['tag'] .= $newtag;
+// }
+// }
$posted_id = item_store($datarray);