@rmdes/indiekit-endpoint-activitypub 3.8.0 → 3.8.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.
|
@@ -87,7 +87,7 @@ export async function isTagFollowed(collections, tag) {
|
|
|
87
87
|
if (!ap_followed_tags) return false;
|
|
88
88
|
const normalizedTag = tag.toLowerCase().trim().replace(/^#/, "");
|
|
89
89
|
const doc = await ap_followed_tags.findOne({ tag: normalizedTag });
|
|
90
|
-
return !!doc;
|
|
90
|
+
return !!(doc?.followedAt);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -96,7 +96,7 @@ export async function isTagFollowed(collections, tag) {
|
|
|
96
96
|
* @returns {string} Actor URL
|
|
97
97
|
*/
|
|
98
98
|
export function getTagsPubActorUrl(tag) {
|
|
99
|
-
return `https://tags.pub/user/${tag.toLowerCase()}`;
|
|
99
|
+
return `https://tags.pub/user/${tag.toLowerCase().replace(/^#/, "")}`;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.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",
|