Skip to content

Commit 2726501

Browse files
committed
Merge tag '0.6.3'
Hollo 0.6.3
2 parents d3f1bec + 7ce79f1 commit 2726501

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ To be released.
1616
[#171]: https://github.com/fedify-dev/hollo/pull/171
1717

1818

19+
Version 0.6.3
20+
-------------
21+
22+
Released on June 23, 2025.
23+
24+
- Fixed a bug where remote posts mentioning the same user multiple times
25+
could not be retrieved due to database constraint violations.
26+
27+
1928
Version 0.6.2
2029
-------------
2130

src/federation/post.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ export async function persistPost(
381381
accountId: account.id,
382382
postId: post.id,
383383
})
384+
.onConflictDoNothing({
385+
target: [mentions.accountId, mentions.postId],
386+
})
384387
.returning();
385388
mentionRows.push(...result);
386389
}

src/pages/federation.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { isActor } from "@fedify/fedify";
2+
import { getLogger } from "@logtape/logtape";
23
import { count, sql } from "drizzle-orm";
34
import { Hono } from "hono";
45
import { DashboardLayout } from "../components/DashboardLayout";
@@ -8,6 +9,8 @@ import { persistAccount } from "../federation/account";
89
import { isPost, persistPost } from "../federation/post";
910
import { loginRequired } from "../login";
1011

12+
const logger = getLogger(["hollo", "pages", "federation"]);
13+
1114
const data = new Hono();
1215

1316
data.use(loginRequired);
@@ -155,7 +158,9 @@ data.post("/refresh", async (c) => {
155158
await persistPost(db, object, c.req.url, { ...fedCtx, documentLoader });
156159
return c.redirect("/federation?done=refresh:post");
157160
}
158-
} catch {}
161+
} catch (error) {
162+
logger.error("Failed to refresh: {error}", { error });
163+
}
159164
}
160165
return c.redirect("/federation?error=refresh");
161166
});

0 commit comments

Comments
 (0)