aboutsummaryrefslogtreecommitdiffstats
path: root/mod/p.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-22 17:41:16 -0800
committerfriendica <info@friendica.com>2015-01-22 17:41:16 -0800
commite46eba125888704b4381aa8418495e91eeb565c8 (patch)
treed91e1e52560ea27be806f416485d32b831d03ebc /mod/p.php
parent29436081a86650e7905a79eba4fdf7dc12f1c7c9 (diff)
downloadvolse-hubzilla-e46eba125888704b4381aa8418495e91eeb565c8.tar.gz
volse-hubzilla-e46eba125888704b4381aa8418495e91eeb565c8.tar.bz2
volse-hubzilla-e46eba125888704b4381aa8418495e91eeb565c8.zip
heavy lifting converting item flag bits
Diffstat (limited to 'mod/p.php')
-rw-r--r--mod/p.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/p.php b/mod/p.php
index 9d1c12dbc..80e835a91 100644
--- a/mod/p.php
+++ b/mod/p.php
@@ -11,9 +11,8 @@ function p_init(&$a) {
$mid = str_replace('.xml','',argv(1));
- $r = q("select * from item where mid = '%s' and (item_flags & %d)>0 and item_private = 0 limit 1",
- dbesc($mid),
- intval(ITEM_WALL)
+ $r = q("select * from item where mid = '%s' and item_wall = 1 and item_private = 0 limit 1",
+ dbesc($mid)
);