mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Include user relays in repo announcement event
This commit is contained in:
2 files changed
+16
-5
No files matched your search
@@ -62,7 +62,7 @@ export function createRepositoryAnnouncementEvent(
|
||||
): EventTemplate {
|
||||
// Build tags array per NIP-34
|
||||
const tags: string[][] = [
|
||||
['d', data.repoId.trim()], // Required: repository identifier
|
||||
['d', data.repoId], // Required: repository identifier
|
||||
];
|
||||
|
||||
if (data.name?.trim()) {
|
||||
@@ -110,6 +110,8 @@ export function createRepositoryAnnouncementEvent(
|
||||
tags.push(['r', data.earliestCommit.trim(), 'euc']);
|
||||
}
|
||||
|
||||
tags.push(['alt', `git repository: ${data.repoId}`]);
|
||||
|
||||
// Create repository announcement event (kind 30617)
|
||||
return {
|
||||
kind: 30617,
|
||||
|
||||
Reference in new issue
Block a user