aboutsummaryrefslogtreecommitdiffstats
path: root/mod/prep.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/prep.php')
-rw-r--r--mod/prep.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/prep.php b/mod/prep.php
index 896717826..950b602c9 100644
--- a/mod/prep.php
+++ b/mod/prep.php
@@ -54,8 +54,8 @@ function prep_content(&$a) {
if(! $a->poi)
return;
- $r = q("select * from xlink left join xchan on xlink_xchan = xchan_hash where xlink_link like '%s' and xlink_rating != 0",
- dbesc($a->poi['xchan_hash'])
+ $r = q("select * from xlink left join xchan on xlink_xchan = xchan_hash where xlink_link like '%s' and xlink_rating != 0 and xlink_static = 1",
+ dbesc(($a->poi) ? $a->poi['xchan_hash'] : argv(1))
);
if(! $r)