aboutsummaryrefslogtreecommitdiffstats
path: root/mod/mood.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-21 16:06:25 -0800
committerfriendica <info@friendica.com>2015-01-21 16:06:25 -0800
commit29436081a86650e7905a79eba4fdf7dc12f1c7c9 (patch)
tree2f7e69d1cd55267bdc9eb604d1084e3d2f6ebc88 /mod/mood.php
parent51848c619080e19cace647966a17eb9a1b42ca25 (diff)
downloadvolse-hubzilla-29436081a86650e7905a79eba4fdf7dc12f1c7c9.tar.gz
volse-hubzilla-29436081a86650e7905a79eba4fdf7dc12f1c7c9.tar.bz2
volse-hubzilla-29436081a86650e7905a79eba4fdf7dc12f1c7c9.zip
slow progress removing bitfields on item table
Diffstat (limited to 'mod/mood.php')
-rwxr-xr-xmod/mood.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/mood.php b/mod/mood.php
index e6f4760e0..bf59eac1f 100755
--- a/mod/mood.php
+++ b/mod/mood.php
@@ -61,10 +61,6 @@ function mood_init(&$a) {
$mid = item_message_id();
$action = sprintf( t('%1$s is %2$s','mood'), '[zrl=' . $poster['xchan_url'] . ']' . $poster['xchan_name'] . '[/zrl]' , $verbs[$verb]);
- $item_flags = ITEM_WALL|ITEM_ORIGIN|ITEM_UNSEEN;
- if(! $parent_mid)
- $item_flags |= ITEM_THREAD_TOP;
-
$arr = array();
@@ -72,7 +68,6 @@ function mood_init(&$a) {
$arr['uid'] = $uid;
$arr['mid'] = $mid;
$arr['parent_mid'] = (($parent_mid) ? $parent_mid : $mid);
- $arr['item_flags'] = $item_flags;
$arr['author_xchan'] = $poster['xchan_hash'];
$arr['owner_xchan'] = (($parent_mid) ? $r[0]['owner_xchan'] : $poster['xchan_hash']);
$arr['title'] = '';
@@ -83,8 +78,13 @@ function mood_init(&$a) {
$arr['item_private'] = $private;
$arr['verb'] = $activity;
$arr['body'] = $action;
+ $arr['item_origin'] = 1;
+ $arr['item_wall'] = 1;
+ $arr['item_unseen'] = 1;
+ if(! $parent_mid)
+ $item['item_thread_top'] = 1;
- if ((! $arr['plink']) && ($arr['item_flags'] & ITEM_THREAD_TOP)) {
+ if ((! $arr['plink']) && intval($arr['item_thread_top'])) {
$arr['plink'] = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $arr['mid'];
}