mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-23 16:37:30 +00:00
Compare commits
No commits in common. "7237ebf8d44278b7c59b20379cb16dd15c8ff0e5" and "a9c7923b2ce41850ff41d20c99100482dcd802b0" have entirely different histories.
7237ebf8d4
...
a9c7923b2c
@ -224,8 +224,12 @@ let constants = {
|
||||
self_blocked_status: {
|
||||
user_html: {
|
||||
enabled: true,
|
||||
time: 60*60*1000
|
||||
time: 2*60*60*1000
|
||||
},
|
||||
timeline_graphql: {
|
||||
enabled: true,
|
||||
time: 2*60*60*1000
|
||||
}
|
||||
},
|
||||
db_user_id: true,
|
||||
db_post_n3: false,
|
||||
|
@ -7,17 +7,6 @@ const crypto = require("crypto")
|
||||
const db = require("../../lib/db")
|
||||
|
||||
module.exports = [
|
||||
{
|
||||
route: "/settings.json", methods: ["GET"], code: async ({req, url}) => {
|
||||
const token = getToken(req)
|
||||
const settings = getSettings(req)
|
||||
return {
|
||||
statusCode: 200,
|
||||
contentType: "application/json",
|
||||
content: settings
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
route: "/settings", methods: ["GET"], code: async ({req, url}) => {
|
||||
const token = getToken(req)
|
||||
|
Loading…
Reference in New Issue
Block a user