hastodon icon indicating copy to clipboard operation
hastodon copied to clipboard

Some Argument Types Use Show Instances That Render Them Invalid

Open KirinDave opened this issue 5 years ago • 0 comments

StatusIds, NotificationIds and AccountIds are using a default show instance to render to the API. This means that all GET calls for notifications will not be able to use the "in_reply_to_id" or the "since_id" features.

These probably require a unique instance in their argument type. I've been patching it with instances like this:

instance Show StatusId where
  show = unStatusId

However, this is really not the best option as it makes debugging worse.

KirinDave avatar Jun 20 '19 04:06 KirinDave