Skip to content

Commit

Permalink
Merge development into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sbertix committed Dec 8, 2020
2 parents 0a2447e + 8f08544 commit b31ba6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/Swiftagram/Models/Specialized/Comment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ public struct Comment: ReflectedType {
/// A list of to-be-reflected properties.
public static let properties: [String: PartialKeyPath<Self>] = ["text": \Self.text,
"likes": \Self.likes,
"user": \Self.user]
"user": \Self.user,
"identifier": \Self.identifier]

/// The underlying `Response`.
public var wrapper: () -> Wrapper

/// The comment primary key.
public var identifier: String! { self["pk"].string(converting: true) }
/// The `text` value.
public var text: String! { self["text"].string() }
/// The `commentLikeCount` value.
Expand Down

0 comments on commit b31ba6c

Please sign in to comment.