mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-01 18:31:35 +00:00
Assistant understands age restricted profiles
This commit is contained in:
parent
fff2d74fe3
commit
138145fa05
3 changed files with 12 additions and 1 deletions
|
|
@ -96,6 +96,14 @@ module.exports = [
|
|||
message: "User not found.",
|
||||
identifier: "NOT_FOUND"
|
||||
})
|
||||
} else if (error === constants.symbols.extractor_results.AGE_RESTRICTED) {
|
||||
return reply(403, {
|
||||
status: "fail",
|
||||
version: "1.0",
|
||||
generatedAt: Date.now(),
|
||||
message: "Profile is age restricted.",
|
||||
identifier: "AGE_RESTRICTED"
|
||||
})
|
||||
} else {
|
||||
throw error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue