diff --git a/internal/typeutils/internaltofrontend_test.go b/internal/typeutils/internaltofrontend_test.go index 6c318e851..c685c519f 100644 --- a/internal/typeutils/internaltofrontend_test.go +++ b/internal/typeutils/internaltofrontend_test.go @@ -1780,7 +1780,7 @@ func (suite *InternalToFrontendTestSuite) TestStatusToAPIStatusPendingApproval() "muted": false, "bookmarked": false, "pinned": false, - "content": "
Hi @1happyturtle, can I reply?
ℹ️ Note from localhost:8080: This reply is pending your approval. You can quickly accept it by liking, boosting or replying to it. You can also accept or reject it at the following link: http://localhost:8080/settings/user/interaction_requests/01J5QVXCCEATJYSXM9H6MZT4JR.
", + "content": "Hi @1happyturtle, can I reply?
ℹ️ Note from localhost:8080: This reply is pending your approval. You can quickly accept it by liking, boosting or replying to it. You can also accept or reject it at the following link: http://localhost:8080/settings/user/interaction-requests/01J5QVXCCEATJYSXM9H6MZT4JR.
", "reblog": null, "application": { "name": "superseriousbusiness", diff --git a/internal/typeutils/util.go b/internal/typeutils/util.go index 1747dbdcd..f84f01b09 100644 --- a/internal/typeutils/util.go +++ b/internal/typeutils/util.go @@ -214,8 +214,8 @@ func (c *Converter) pendingReplyNote( // Build the settings panel URL at which the user // can view + approve/reject the interaction request. // - // Eg., https://example.org/settings/user/interaction_requests/01J5QVXCCEATJYSXM9H6MZT4JR - settingsURL = proto + "://" + host + "/settings/user/interaction_requests/" + intReq.ID + // Eg., https://example.org/settings/user/interaction-requests/01J5QVXCCEATJYSXM9H6MZT4JR + settingsURL = proto + "://" + host + "/settings/user/interaction-requests/" + intReq.ID ) var note strings.Builder diff --git a/web/source/settings/views/user/interactions/index.tsx b/web/source/settings/views/user/interactions/index.tsx index ec3cd016b..5c2abfea7 100644 --- a/web/source/settings/views/user/interactions/index.tsx +++ b/web/source/settings/views/user/interactions/index.tsx @@ -18,9 +18,13 @@ */ import React from "react"; + +import { Redirect, Route, Router, Switch } from "wouter"; +import { BaseUrlContext, useBaseUrl } from "../../../lib/navigation/util"; +import InteractionRequestDetail from "./detail"; import InteractionRequestsSearchForm from "./search"; -export default function InteractionRequests() { +function InteractionRequests() { return (