diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2024-03-28 02:48:32 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2024-03-28 02:48:50 +0900 |
commit | 727d7759e0a733c4575de5431160fbd090371728 (patch) | |
tree | 18826c18e097a36c86394c051c98b4776f73fdbe /readers | |
parent | c114d5cedab38a2f6683eabb7c98e9943eecf8bf (diff) |
Diffstat (limited to 'readers')
-rw-r--r-- | readers/article.rkt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/readers/article.rkt b/readers/article.rkt index c60de16..2d14639 100644 --- a/readers/article.rkt +++ b/readers/article.rkt @@ -27,6 +27,9 @@ (define hash (hash-ref jse 'hash (thunk (k "hash not found")))) (unless (string? hash) (k "hash must be a string")) + (define source (hash-ref jse 'source (thunk (k "source not found")))) + (unless (string? source) (k "source must be a string")) + (define title (hash-ref jse 'title (thunk (k "title not found")))) (unless (string? title) (k "title must be a string")) @@ -37,7 +40,7 @@ (define body (hash-ref jse 'html (thunk (k "html not found")))) (unless (string? body) (k "html must be a string")) - (make-article-with-tags id timestamp hash title body tags)))) + (make-article-with-tags id timestamp hash source title body tags)))) (: read-article (-> Input-Port (U Article-With-Tags EOF))) (define (read-article in) |