From f804875b3d4c79a02c233300192faf3b527269f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Chr=C3=A1steck=C3=BD?= Date: Wed, 13 Sep 2023 23:56:51 +0200 Subject: [PATCH] Feat: Add instructions on how to create a Mastodon app (#34) --- .../synchronize-mastodon.component.html | 33 ++++++++++++++----- .../synchronize-mastodon.component.ts | 2 ++ 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/app/synchronization/pages/synchronize-mastodon/synchronize-mastodon.component.html b/src/app/synchronization/pages/synchronize-mastodon/synchronize-mastodon.component.html index 976d4e4..df0ac23 100644 --- a/src/app/synchronization/pages/synchronize-mastodon/synchronize-mastodon.component.html +++ b/src/app/synchronization/pages/synchronize-mastodon/synchronize-mastodon.component.html @@ -7,20 +7,33 @@

Setup OAuth

- Before you can synchronize your settings, you must create an OAuth app and put its credentials here. - Any settings you put here are only stored in your browser. + Before you can synchronize your settings, you must create an + OAuth app and put its + credentials here. Any settings you put here are only stored in your browser.

-

Your OAuth app settings should include this redirect uri: {{redirectUrl}}

+

Your OAuth app needs these settings:

+
- - + +
- +
@@ -46,11 +59,13 @@

Synchronization

- +
- If enabled, the censure reasons will be displayed publicly in your Mastodon blocklist, otherwise they'll be visible as a private note. + If enabled, the censure reasons will be displayed publicly in your Mastodon blocklist, otherwise they'll + be visible as a private note.
@@ -60,7 +75,7 @@

Synchronization

Preview

- +
diff --git a/src/app/synchronization/pages/synchronize-mastodon/synchronize-mastodon.component.ts b/src/app/synchronization/pages/synchronize-mastodon/synchronize-mastodon.component.ts index b760a34..02991d6 100644 --- a/src/app/synchronization/pages/synchronize-mastodon/synchronize-mastodon.component.ts +++ b/src/app/synchronization/pages/synchronize-mastodon/synchronize-mastodon.component.ts @@ -21,6 +21,8 @@ import {NormalizedInstanceDetailResponse} from "../../../response/normalized-ins styleUrls: ['./synchronize-mastodon.component.scss'] }) export class SynchronizeMastodonComponent implements OnInit { + protected readonly currentInstance = this.authManager.currentInstanceSnapshot.name; + private syncSettings: MastodonSynchronizationSettings = this.database.mastodonSynchronizationSettings; public oauthForm = new FormGroup({