aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php2
-rw-r--r--mod/rate.php13
2 files changed, 9 insertions, 6 deletions
diff --git a/mod/item.php b/mod/item.php
index eb823b4b0..dbee2df3b 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -644,7 +644,7 @@ function item_post(&$a) {
}
}
- $item_unseen = ((local_channel() != $profile_uid) ? 1 : 0);
+ $item_unseen = 1;
if($post_type === 'wall' || $post_type === 'wall-comment')
$item_flags = $item_flags | ITEM_WALL;
diff --git a/mod/rate.php b/mod/rate.php
index 694b88ddd..cc12dcac9 100644
--- a/mod/rate.php
+++ b/mod/rate.php
@@ -119,12 +119,15 @@ function rate_content(&$a) {
dbesc($channel['channel_hash']),
dbesc($a->data['target'])
);
- if($r)
+ if($r) {
$a->data['xlink'] = $r[0];
-
- $rating_val = $r[0]['xlink_rating'];
- $rating_text = $r[0]['xlink_rating_text'];
-
+ $rating_val = $r[0]['xlink_rating'];
+ $rating_text = $r[0]['xlink_rating_text'];
+ }
+ else {
+ $rating_val = 0;
+ $rating_text = '';
+ }
// if unset default to enabled
if($poco_rating === false)