finally fixed all upvotes and flagging functionality, should not have taken this long