@@ -12,6 +12,7 @@ import TinyConstraints
12class FullPostController: UITableViewController {
12class FullPostController: UITableViewController {
14 var post: Model.Posts?
14 var post: Model.Posts?
15+ var type: HeaderType = .NONE
16 override func viewDidLoad() {
17 override func viewDidLoad() {
17 super.viewDidLoad()
18 super.viewDidLoad()
@@ -96,10 +97,15 @@ class FullPostController: UITableViewController {
97 cell.fill(with: PostCellData.create(with: post!.body), true, post: post!)
98 cell.fill(with: PostCellData.create(with: post!.body), true, post: post!)
99− cell.onUserDisplay = { [weak self] (id) in
102+ cell.onUserDisplay = { [weak self] (id) in
100− let vc = self?.storyboard!.instantiateViewController(withIdentifier: profileViewController) as! ProfileViewController
103+ let vc = self?.storyboard!.instantiateViewController(withIdentifier: profileViewController) as! ProfileViewController
101− vc.idProfile = id
104+ vc.idProfile = id
102− self?.navigationController?.pushViewController(vc, animated: true)
105+ self?.navigationController?.pushViewController(vc, animated: true)
105 cell.selectionStyle = .none
111 cell.selectionStyle = .none