data endpoint for entity 90008 (aka. a website)

shorten activity source names even further

ptr.pet 042f1fb1 2cd7e3c4

verified
0/0
Waiting for spindle ...
Changed files
+2 -2
src
+2 -2
src/lib/activity.ts
···
const dateStr = commit.Author?.When;
activities.push({
-
source: 'knot.ptr.pet',
+
source: 'tangled',
description: `pushed ${repoName}: ${message}`,
link: `https://tangled.sh/${did}/${repoName}/commit/${hash}`,
date: dateStr ? new Date(dateStr) : null
···
const response = await fetch(url);
const feed = parseFeed(await response.text());
-
const source = new URL(url).host;
+
const source = new URL(url).host.split('.')[0];
const results: Activity[] = [];
for (const item of feed.items) {
const description: string | null = item.description || item.title;