From 4b747886b918d3da91f62b2ba7f7bc4aa142cf79 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 5 Jun 2018 14:30:47 +0200 Subject: Improve docs --- docs/index.rst | 2 +- mastodon/Mastodon.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index ef96273..4d7073c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -844,7 +844,7 @@ Mastodon allows an application to have one webpush subscription per user at a ti .. automethod:: Mastodon.push_subscription_set .. automethod:: Mastodon.push_subscription_update -.. push_subscription_generate_keys(): +.. _push_subscription_generate_keys(): .. automethod:: Mastodon.push_subscription_generate_keys .. automethod:: Mastodon.push_subscription_decrypt_push diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index ed2a1f7..38c9c75 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -1518,7 +1518,7 @@ class Mastodon: requires https for this URL. `encrypt_params` is a dict with key parameters that allow the server to encrypt data for you: A public key `pubkey` and a shared secret `auth`. You can generate this as well as the corresponding private key using the - `push_subscription_generate_keys()`_ . + `push_subscription_generate_keys()`_ function. The rest of the parameters controls what kind of events you wish to subscribe to. -- cgit v1.2.3