1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

didn't mean to commit that oops

This commit is contained in:
Lynne Megido 2020-01-20 19:51:44 +10:00
parent 5d8aa010fa
commit 63c51ba6b2
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
2 changed files with 1 additions and 8 deletions

View file

@ -1,4 +1,4 @@
from flask import Flask, render_template, session, request, redirect, url_for, send_file, jsonify from flask import Flask, render_template, session, request, redirect, url_for, send_file
from flask_mysqldb import MySQL from flask_mysqldb import MySQL
from mastodon import Mastodon from mastodon import Mastodon
@ -370,11 +370,6 @@ def img_bot_generic():
def favicon(): def favicon():
return send_file("static/favicon.ico") return send_file("static/favicon.ico")
@app.route("/.well-known/webfinger")
def webfinger():
return render_template("webfinger.json", base_uri = cfg['base_uri']), 200, {'Content-type':'application/json'}
def bot_check(bot): def bot_check(bot):
# check to ensure bot is owned by user # check to ensure bot is owned by user
c = mysql.connection.cursor() c = mysql.connection.cursor()

View file

@ -76,5 +76,3 @@ CREATE TABLE IF NOT EXISTS `contact_history` (
`reply` BOOLEAN DEFAULT 0, `reply` BOOLEAN DEFAULT 0,
FOREIGN KEY (`user_id`) REFERENCES users(id) ON DELETE CASCADE FOREIGN KEY (`user_id`) REFERENCES users(id) ON DELETE CASCADE
) ENGINE=INNODB; ) ENGINE=INNODB;
you need to generate an RSA key and store it in a new table for authorised fetches