aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-20 18:46:23 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-20 18:46:23 -0700
commit6466774b6e6ed72ea1cc57cbc76e451205934aca (patch)
treede1b5415812e3cc9b9ee8d1e7d481dd9bc26cc8f /mod/item.php
parentfe00d29047da1cb99cbc06af938268ec9e6a8fcb (diff)
downloadvolse-hubzilla-6466774b6e6ed72ea1cc57cbc76e451205934aca.tar.gz
volse-hubzilla-6466774b6e6ed72ea1cc57cbc76e451205934aca.tar.bz2
volse-hubzilla-6466774b6e6ed72ea1cc57cbc76e451205934aca.zip
PRIVACY: possible privacy leakage under a defined set of circumstances
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php
index a732a9f81..cbbaa9e27 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -452,8 +452,6 @@ function item_post(&$a) {
}
}
- $post_type = notags(trim($_REQUEST['type']));
-
$mimetype = notags(trim($_REQUEST['mimetype']));
if(! $mimetype)
$mimetype = 'text/bbcode';
@@ -659,8 +657,19 @@ function item_post(&$a) {
$item_unseen = 1;
- if($post_type === 'wall' || $post_type === 'wall-comment')
- $item_flags = $item_flags | ITEM_WALL;
+
+ // determine if this is a wall post
+
+ if($parent) {
+ if($parent_item['item_flags'] & ITEM_WALL) {
+ $item_flags = $item_flags | ITEM_WALL;
+ }
+ }
+ else {
+ if(! $webpage) {
+ $item_flags = $item_flags | ITEM_WALL;
+ }
+ }
if($origin)
$item_flags = $item_flags | ITEM_ORIGIN;