summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLibravatar Kevin Gimbel <kevin@gimbel.dev>2025-11-14 10:52:13 +0100
committerLibravatar tobi <tobi.smethurst@protonmail.com>2025-11-17 14:15:53 +0100
commitbc7ff907077b523f33b6bf8cb406d55d7c873628 (patch)
treee7e12a10e1c9477e106b709a9732e3c6e14882d2 /web/template
parent[bugfix] Add Swagger docs for the user:notification stream (#4555) (diff)
downloadgotosocial-bc7ff907077b523f33b6bf8cb406d55d7c873628.tar.xz
[feature] Implement stub `authorize_interaction` route (#4557)
Updates #4548 # Description This PR implements a route for the `/authorize_interaction` endpoint. This endpoint is used when an interaction request comes from a remote Mastodon instance, e.g. when a user clicks on the reply button and enters their GoToSocial server address into the field. closes #4548 ## Checklist - [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md). - [x] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat. - [x] I/we have not leveraged AI to create the proposed changes. - [x] I/we have performed a self-review of added code. - [x] I/we have written code that is legible and maintainable by others. - [x] I/we have commented the added code, particularly in hard-to-understand areas. - [x] I/we have made any necessary changes to documentation. - [ ] I/we have added tests that cover new code. - [ ] I/we have run tests and they pass locally with the changes. - [ ] I/we have run `go fmt ./...` and `golangci-lint run`. Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4557 Co-authored-by: Kevin Gimbel <kevin@gimbel.dev> Co-committed-by: Kevin Gimbel <kevin@gimbel.dev>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/authorize-interaction.tmpl30
1 files changed, 30 insertions, 0 deletions
diff --git a/web/template/authorize-interaction.tmpl b/web/template/authorize-interaction.tmpl
new file mode 100644
index 000000000..e2ab397ed
--- /dev/null
+++ b/web/template/authorize-interaction.tmpl
@@ -0,0 +1,30 @@
+{{- /*
+// GoToSocial
+// Copyright (C) GoToSocial Authors admin@gotosocial.org
+// SPDX-License-Identifier: AGPL-3.0-or-later
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/ -}}
+
+{{- with . }}
+<main>
+ <section>
+ <h2>Authorize Remote Interaction</h2>
+ <p>It looks like you're trying to interact with a post or account from a different instance.</p>
+ <p>Because GoToSocial does not come with a web client built in, this is not supported.</p>
+ <p>Instead, you can interact with the post or account by copying the URL shown below, and pasting it into the search bar of whatever app you normally use for your GoToSocial account:</p>
+ <div class="prism-highlighted"><pre><code class="language-uri">{{- .interactionURI -}}</code></pre></div>
+ </section>
+</main>
+{{- end }} \ No newline at end of file