@rmdes/indiekit-endpoint-activitypub 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -188,10 +188,11 @@ export function exploreApiController(mountPath) {
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
// Render each card server-side
|
|
191
|
+
const csrfToken = getToken(request.session);
|
|
191
192
|
const templateData = {
|
|
192
193
|
...response.locals,
|
|
193
194
|
mountPath,
|
|
194
|
-
csrfToken
|
|
195
|
+
csrfToken,
|
|
195
196
|
interactionMap: {},
|
|
196
197
|
};
|
|
197
198
|
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { validateHashtag, mapMastodonStatusToItem } from "./explore-utils.js";
|
|
20
|
+
import { getToken } from "../csrf.js";
|
|
20
21
|
|
|
21
22
|
const FETCH_TIMEOUT_MS = 10_000;
|
|
22
23
|
const PAGE_SIZE = 20;
|
|
@@ -183,10 +184,11 @@ export function hashtagExploreApiController(mountPath) {
|
|
|
183
184
|
);
|
|
184
185
|
|
|
185
186
|
// Render HTML AFTER merge/dedup/paginate (don't waste CPU on discarded items)
|
|
187
|
+
const csrfToken = getToken(request.session);
|
|
186
188
|
const templateData = {
|
|
187
189
|
...response.locals,
|
|
188
190
|
mountPath,
|
|
189
|
-
csrfToken
|
|
191
|
+
csrfToken,
|
|
190
192
|
interactionMap: {},
|
|
191
193
|
};
|
|
192
194
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indiekit",
|