|
|
|
@ -21,6 +21,7 @@ def comment_by_id36(request: Request, comment_id36: str) -> Comment: |
|
|
|
|
|
|
|
return get_resource(request, query) |
|
|
|
|
|
|
|
|
|
|
|
@use_kwargs( |
|
|
|
CommentSchema(only=('comment_id36',)), |
|
|
|
locations=('matchdict',), |
|
|
|
@ -29,8 +30,11 @@ def notification_by_comment_id36( |
|
|
|
request: Request, |
|
|
|
comment_id36: str |
|
|
|
) -> Comment: |
|
|
|
"""Get a comment notification specified by {comment_id36} in the route (or 404).""" |
|
|
|
"""Get a comment notification specified by {comment_id36} in the route. |
|
|
|
|
|
|
|
Looks up a comment notification from the request user and a {comment_id36} |
|
|
|
specified in the route. |
|
|
|
""" |
|
|
|
if not request.user: |
|
|
|
raise HTTPForbidden |
|
|
|
|
|
|
|
|