@rmdes/indiekit-endpoint-activitypub 2.0.34 → 2.0.35
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.
|
@@ -132,7 +132,7 @@ export function tagTimelineController(mountPath) {
|
|
|
132
132
|
response.render("activitypub-tag-timeline", {
|
|
133
133
|
title: `#${tag}`,
|
|
134
134
|
readerParent: { href: `${mountPath}/admin/reader`, text: response.locals.__("activitypub.reader.title") },
|
|
135
|
-
tag,
|
|
135
|
+
hashtag: tag,
|
|
136
136
|
items,
|
|
137
137
|
before: result.before,
|
|
138
138
|
after: result.after,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.35",
|
|
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",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{# Tag header #}
|
|
5
5
|
<header class="ap-tag-header">
|
|
6
6
|
<div class="ap-tag-header__info">
|
|
7
|
-
<h2 class="ap-tag-header__title">#{{
|
|
7
|
+
<h2 class="ap-tag-header__title">#{{ hashtag }}</h2>
|
|
8
8
|
<p class="ap-tag-header__count">
|
|
9
9
|
{{ __("activitypub.reader.tagTimeline.postsTagged", items.length) }}
|
|
10
10
|
</p>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{% if isFollowed %}
|
|
14
14
|
<form action="{{ mountPath }}/admin/reader/unfollow-tag" method="post" class="ap-tag-header__follow-form">
|
|
15
15
|
<input type="hidden" name="_csrf" value="{{ csrfToken }}">
|
|
16
|
-
<input type="hidden" name="tag" value="{{
|
|
16
|
+
<input type="hidden" name="tag" value="{{ hashtag }}">
|
|
17
17
|
<button type="submit" class="ap-tag-header__unfollow-btn">
|
|
18
18
|
{{ __("activitypub.reader.tagTimeline.unfollowTag") }}
|
|
19
19
|
</button>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{% else %}
|
|
22
22
|
<form action="{{ mountPath }}/admin/reader/follow-tag" method="post" class="ap-tag-header__follow-form">
|
|
23
23
|
<input type="hidden" name="_csrf" value="{{ csrfToken }}">
|
|
24
|
-
<input type="hidden" name="tag" value="{{
|
|
24
|
+
<input type="hidden" name="tag" value="{{ hashtag }}">
|
|
25
25
|
<button type="submit" class="ap-tag-header__follow-btn">
|
|
26
26
|
{{ __("activitypub.reader.tagTimeline.followTag") }}
|
|
27
27
|
</button>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
{% if items.length > 0 %}
|
|
38
38
|
<div class="ap-timeline"
|
|
39
39
|
data-mount-path="{{ mountPath }}"
|
|
40
|
-
data-tag="{{
|
|
40
|
+
data-tag="{{ hashtag }}"
|
|
41
41
|
data-before="{{ before if before else '' }}">
|
|
42
42
|
{% for item in items %}
|
|
43
43
|
{% include "partials/ap-item-card.njk" %}
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
{% if before or after %}
|
|
49
49
|
<nav class="ap-pagination ap-pagination--js-hidden" id="ap-tag-pagination">
|
|
50
50
|
{% if after %}
|
|
51
|
-
<a href="?tag={{
|
|
51
|
+
<a href="?tag={{ hashtag }}&after={{ after }}" class="ap-pagination__prev">
|
|
52
52
|
{{ __("activitypub.reader.pagination.newer") }}
|
|
53
53
|
</a>
|
|
54
54
|
{% endif %}
|
|
55
55
|
{% if before %}
|
|
56
|
-
<a href="?tag={{
|
|
56
|
+
<a href="?tag={{ hashtag }}&before={{ before }}" class="ap-pagination__next">
|
|
57
57
|
{{ __("activitypub.reader.pagination.older") }}
|
|
58
58
|
</a>
|
|
59
59
|
{% endif %}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
id="ap-load-more"
|
|
67
67
|
data-before="{{ before }}"
|
|
68
68
|
data-tab=""
|
|
69
|
-
data-tag="{{
|
|
69
|
+
data-tag="{{ hashtag }}"
|
|
70
70
|
x-data="apInfiniteScroll()"
|
|
71
71
|
x-init="init()"
|
|
72
72
|
@ap-append-items.window="appendItems($event.detail)">
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
</div>
|
|
80
80
|
{% endif %}
|
|
81
81
|
{% else %}
|
|
82
|
-
{{ prose({ text: __("activitypub.reader.tagTimeline.noPosts"
|
|
82
|
+
{{ prose({ text: __("activitypub.reader.tagTimeline.noPosts", hashtag) }) }}
|
|
83
83
|
{% endif %}
|
|
84
84
|
{% endblock %}
|