lib/zendesk2/help_center/post.rb in zendesk2-1.10.0 vs lib/zendesk2/help_center/post.rb in zendesk2-1.11.0
- old
+ new
@@ -59,14 +59,20 @@
merge_attributes(response.body['post'])
end
def author
- author_id && cistern.users.get!(author_id)
+ cistern.users.get!(author_id) if author_id
end
def topic
requires :topic_id
cistern.help_center_topics.get!(topic_id)
+ end
+
+ def subscriptions
+ requires :identity
+
+ cistern.help_center_subscriptions(content_id: identity, content_type: 'post')
end
end