mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-26 00:58:59 +00:00
Compare commits
No commits in common. "fc8be5db40ee6bdd4852e20bf62beb81b45b8f7a" and "386d32367a01da8d87c46f9ac0ed97e6ff9c1f59" have entirely different histories.
fc8be5db40
...
386d32367a
3 changed files with 49 additions and 50 deletions
|
@ -22,7 +22,6 @@ CREATE TABLE IF NOT EXISTS `bots` (
|
||||||
`push_private_key` BINARY(128) NOT NULL,
|
`push_private_key` BINARY(128) NOT NULL,
|
||||||
`push_public_key` BINARY(128) NOT NULL,
|
`push_public_key` BINARY(128) NOT NULL,
|
||||||
`push_secret` BINARY(16),
|
`push_secret` BINARY(16),
|
||||||
`instance_type` VARCHAR(64) NOT NULL DEFAULT 'Mastodon',
|
|
||||||
`enabled` BOOLEAN DEFAULT 0,
|
`enabled` BOOLEAN DEFAULT 0,
|
||||||
`replies_enabled` BOOLEAN DEFAULT 1,
|
`replies_enabled` BOOLEAN DEFAULT 1,
|
||||||
`post_frequency` SMALLINT UNSIGNED DEFAULT 30,
|
`post_frequency` SMALLINT UNSIGNED DEFAULT 30,
|
||||||
|
|
2
webui.py
2
webui.py
|
@ -483,7 +483,7 @@ def bot_create():
|
||||||
secret = privated['auth']
|
secret = privated['auth']
|
||||||
client.push_subscription_set("{}/push/{}".format(cfg['base_uri'], handle), publicd, mention_events = True)
|
client.push_subscription_set("{}/push/{}".format(cfg['base_uri'], handle), publicd, mention_events = True)
|
||||||
|
|
||||||
c.execute("INSERT INTO `bots` (handle, user_id, credentials_id, push_public_key, push_private_key, push_secret, instance_type) VALUES (%s, %s, %s, %s, %s, %s)", (handle, session['user_id'], credentials_id, public, private, secret, session['instance_type']))
|
c.execute("INSERT INTO `bots` (handle, user_id, credentials_id, push_public_key, push_private_key, push_secret) VALUES (%s, %s, %s, %s, %s, %s)", (handle, session['user_id'], credentials_id, public, private, secret))
|
||||||
mysql.connection.commit()
|
mysql.connection.commit()
|
||||||
c.close()
|
c.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue