diff options
author | friendica <info@friendica.com> | 2012-10-27 05:26:34 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-27 05:26:34 -0700 |
commit | 1a9ab127482ee4eb17e3d2bd0ffa222f7053715b (patch) | |
tree | 780f6659e29d4a9051cb82e62dfddacd6821a782 /include | |
parent | 96c8e74438d4f7c324c96893720fd4018925de4f (diff) | |
download | volse-hubzilla-1a9ab127482ee4eb17e3d2bd0ffa222f7053715b.tar.gz volse-hubzilla-1a9ab127482ee4eb17e3d2bd0ffa222f7053715b.tar.bz2 volse-hubzilla-1a9ab127482ee4eb17e3d2bd0ffa222f7053715b.zip |
fix starring posts
Diffstat (limited to 'include')
-rw-r--r-- | include/ItemObject.php | 6 | ||||
-rw-r--r-- | include/conversation.php | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php index e85461682..3035203f8 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -173,14 +173,14 @@ class Item extends BaseObject { if($this->is_toplevel()) { if($conv->get_profile_owner() == local_user()) { - $isstarred = (($item['starred']) ? "starred" : "unstarred"); + $isstarred = (($item['item_flags'] & ITEM_STARRED) ? "starred" : "unstarred"); $star = array( 'do' => t("add star"), 'undo' => t("remove star"), 'toggle' => t("toggle star status"), - 'classdo' => (($item['starred']) ? "hidden" : ""), - 'classundo' => (($item['starred']) ? "" : "hidden"), + 'classdo' => (($item['item_flags'] & ITEM_STARRED) ? "hidden" : ""), + 'classundo' => (($item['item_flags'] & ITEM_STARRED) ? "" : "hidden"), 'starred' => t('starred'), 'tagger' => t("add tag"), 'classtagger' => "", diff --git a/include/conversation.php b/include/conversation.php index 332171e03..4238ff586 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -513,14 +513,14 @@ function prepare_threads_body($a, $items, $cmnt_tpl, $page_writeable, $mode, $pr } } if($profile_owner == local_user()) { - $isstarred = (($item['starred']) ? "starred" : "unstarred"); + $isstarred = (($item['item_flags'] & ITEM_STARRED) ? "starred" : "unstarred"); $star = array( 'do' => t("add star"), 'undo' => t("remove star"), 'toggle' => t("toggle star status"), - 'classdo' => (($item['starred']) ? "hidden" : ""), - 'classundo' => (($item['starred']) ? "" : "hidden"), + 'classdo' => (($item['item_flags'] & ITEM_STARRED) ? "hidden" : ""), + 'classundo' => (($item['item_flags'] & ITEM_STARRED) ? "" : "hidden"), 'starred' => t('starred'), 'tagger' => t("add tag"), 'classtagger' => "", |