     var thumbnail: UIImage?
     var postImage: UIImage?
 
-    required init?(map: Map){
-
+    required init?(map: Map) {
     }
 
     func mapping(map: Map) {

import Foundation
import ObjectMapper


class Post: Mappable {


    var imageNameString: String? { return "\(tim!)\(ext!)" }
    var thumbnailNameString: String? { return "\(tim!)s.jpg" }

    func matchesForRegexInText(_ regex: String!, text: String!) -> [(NSRange, NSString)] {
        // TODO: move somewhere else
        guard let regex = try? NSRegularExpression(pattern: regex, options: []) else { return [] }
