public void commit(CBlockPayload block) throws Exception { // Superclass super.commit(block); // Commit UTILS.DB.executeUpdate( "INSERT INTO comments " + "SET adr='" + this.target_adr + "'," + "parent_type='" + this.parent_type + "', " + "parentID='" + this.parentID + "', " + "comID='" + this.comID + "', " + "mes='" + UTILS.BASIC.base64_encode(this.mes) + "', " + "expire='" + (this.block + 43200) + "', " + "block='" + this.block + "'"); // Post ? if (this.parent_type.equals("ID_POST")) UTILS.DB.executeUpdate( "UPDATE tweets " + "SET comments=comments+1 " + "WHERE tweetID='" + this.parentID + "'"); }