mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-15 19:05:09 +00:00
Assistant understands age restricted profiles
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user