little fixes

This commit is contained in:
friendica
2013-02-24 20:21:37 -08:00
parent 32aef838f8
commit cfd0dc1bff
4 changed files with 7 additions and 6 deletions

View File

@@ -126,9 +126,10 @@ function localize_item(&$item){
break;
case ACTIVITY_OBJ_NOTE:
default:
if(! ($item_flags & ITEM_THREAD_TOP))
$post_type = t('comment');
else
// wrong item_flags, this won't work
// if(! ($item_flags & ITEM_THREAD_TOP))
// $post_type = t('comment');
// else
$post_type = t('status');
break;
}

View File

@@ -130,7 +130,7 @@ function poco_load($xchan = null,$url = null) {
);
}
else {
q("update xlink set xlink_updated = '%s', rating = %d where xlink_id = %d limit 1",
q("update xlink set xlink_updated = '%s', xlink_rating = %d where xlink_id = %d limit 1",
dbesc(datetime_convert()),
intval($rating),
intval($r[0]['xlink_id'])