added the private feature

This commit is contained in:
SJ
2016-02-10 14:57:30 +01:00
parent 93e1d0e7fe
commit 2fbb41264c
20 changed files with 117 additions and 2 deletions

View File

@ -870,6 +870,15 @@ class ModelSearchMessage extends Model {
}
public function mark_as_private($id = 0) {
if($id > 0) {
$query = $this->db->query("INSERT INTO " . TABLE_PRIVATE . " (id) VALUES(?)", array($id));
}
return 1;
}
public function get_message_tag($id = '', $uid = 0) {
if($id == '' || $uid <= 0) { return ''; }