@rmdes/indiekit-endpoint-activitypub 1.0.18 → 1.0.19
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
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",
|
|
@@ -11,17 +11,21 @@
|
|
|
11
11
|
|
|
12
12
|
{% if following.length > 0 %}
|
|
13
13
|
{% for account in following %}
|
|
14
|
+
{% if account.source === "import" %}
|
|
15
|
+
{% set sourceBadge = __("activitypub.sourceImport") %}
|
|
16
|
+
{% elif account.source === "refollow:sent" %}
|
|
17
|
+
{% set sourceBadge = __("activitypub.sourceRefollowPending") %}
|
|
18
|
+
{% elif account.source === "refollow:failed" %}
|
|
19
|
+
{% set sourceBadge = __("activitypub.sourceRefollowFailed") %}
|
|
20
|
+
{% else %}
|
|
21
|
+
{% set sourceBadge = __("activitypub.sourceFederation") %}
|
|
22
|
+
{% endif %}
|
|
14
23
|
{{ card({
|
|
15
24
|
title: account.name or account.handle or account.actorUrl,
|
|
16
25
|
url: account.actorUrl,
|
|
17
26
|
description: { text: "@" + account.handle if account.handle },
|
|
18
27
|
published: account.followedAt,
|
|
19
|
-
badges: [{
|
|
20
|
-
text: __("activitypub.sourceImport") if account.source === "import"
|
|
21
|
-
else __("activitypub.sourceRefollowPending") if account.source === "refollow:sent"
|
|
22
|
-
else __("activitypub.sourceRefollowFailed") if account.source === "refollow:failed"
|
|
23
|
-
else __("activitypub.sourceFederation")
|
|
24
|
-
}]
|
|
28
|
+
badges: [{ text: sourceBadge }]
|
|
25
29
|
}) }}
|
|
26
30
|
{% endfor %}
|
|
27
31
|
|