scribe/src/models
Edward Loveall f05a12a880
Add support for missing posts
Posts, like 8661f4724aa9, can go missing if the account or post was
removed. In this case, the API returns data like this:

```json
{
  "data": {
    "post": null
  }
}
```

When this happens, we can detect it because the parsed response now has
a nil value: `response.data.post == nil` and construct an `EmptyPage`
instead of a `Page`. The `Articles::Show` action can then render
conditionally based on if the response from `PageConverter` is a `Page`
or an `EmptyPage`.
2022-06-17 16:00:01 -04:00
..
mixins Initial app 2021-05-01 17:03:38 -04:00
base_model.cr Initial app 2021-05-01 17:03:38 -04:00
gist_file.cr Proxy GitHub gists with rate limiting 2022-01-23 15:05:46 -05:00
gist_params.cr Handle gists with file extensions 2022-04-04 20:32:42 -04:00
missing_page.cr Add support for missing posts 2022-06-17 16:00:01 -04:00
nodes.cr Proxy GitHub gists with rate limiting 2022-01-23 15:05:46 -05:00
page.cr Improve title parsing 2021-10-03 18:14:46 -04:00
post_response.cr Add support for missing posts 2022-06-17 16:00:01 -04:00