@rmdes/indiekit-endpoint-activitypub 2.7.0 → 2.7.1
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/lib/inbox-listeners.js
CHANGED
|
@@ -431,6 +431,7 @@ export function registerInboxListeners(inboxChain, options) {
|
|
|
431
431
|
|
|
432
432
|
await addNotification(collections, {
|
|
433
433
|
uid: object.id?.href || `reply:${actorUrl}:${inReplyTo}`,
|
|
434
|
+
url: object.url?.href || object.id?.href || "",
|
|
434
435
|
type: "reply",
|
|
435
436
|
actorUrl: actorInfo.url,
|
|
436
437
|
actorName: actorInfo.name,
|
|
@@ -462,6 +463,7 @@ export function registerInboxListeners(inboxChain, options) {
|
|
|
462
463
|
|
|
463
464
|
await addNotification(collections, {
|
|
464
465
|
uid: object.id?.href || `mention:${actorUrl}:${object.id?.href}`,
|
|
466
|
+
url: object.url?.href || object.id?.href || "",
|
|
465
467
|
type: "mention",
|
|
466
468
|
actorUrl: actorInfo.url,
|
|
467
469
|
actorName: actorInfo.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
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",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
if (this.error) setTimeout(() => this.error = '', 3000);
|
|
231
231
|
}
|
|
232
232
|
}">
|
|
233
|
-
<a href="{{ mountPath }}/admin/reader/compose?replyTo={{ itemUid | urlencode }}"
|
|
233
|
+
<a href="{{ mountPath }}/admin/reader/compose?replyTo={{ (itemUrl or itemUid) | urlencode }}"
|
|
234
234
|
class="ap-card__action ap-card__action--reply"
|
|
235
235
|
title="{{ __('activitypub.reader.actions.reply') }}">
|
|
236
236
|
↩ {{ __("activitypub.reader.actions.reply") }}{% if replyCount != null %}<span class="ap-card__count">{{ replyCount }}</span>{% endif %}
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
|
|
57
57
|
{% if item.type == "reply" or item.type == "mention" %}
|
|
58
58
|
<div class="ap-notification__actions">
|
|
59
|
-
<a href="{{ mountPath }}/admin/reader/compose?replyTo={{ item.uid | urlencode }}" class="ap-notification__reply-btn" title="{{ __('activitypub.reader.actions.reply') }}">
|
|
59
|
+
<a href="{{ mountPath }}/admin/reader/compose?replyTo={{ (item.url or item.uid) | urlencode }}" class="ap-notification__reply-btn" title="{{ __('activitypub.reader.actions.reply') }}">
|
|
60
60
|
↩ {{ __("activitypub.reader.actions.reply") }}
|
|
61
61
|
</a>
|
|
62
|
-
<a href="{{ mountPath }}/admin/reader/post?url={{ item.uid | urlencode }}" class="ap-notification__thread-btn" title="{{ __('activitypub.reader.post.title') }}">
|
|
62
|
+
<a href="{{ mountPath }}/admin/reader/post?url={{ (item.url or item.uid) | urlencode }}" class="ap-notification__thread-btn" title="{{ __('activitypub.reader.post.title') }}">
|
|
63
63
|
💬 {{ __("activitypub.notifications.viewThread") }}
|
|
64
64
|
</a>
|
|
65
65
|
</div>
|