feat: allow to configure a stream goal

This commit is contained in:
verbiricha
2023-09-02 18:33:19 +02:00
committed by Kieran
parent 3da6f5439b
commit 9fd59817d9
7 changed files with 78 additions and 25 deletions

View File

@ -59,12 +59,14 @@ export class Nip103StreamProvider implements StreamProvider {
const image = findTag(ev, "image");
const tags = ev?.tags.filter(a => a[0] === "t").map(a => a[1]);
const contentWarning = findTag(ev, "content-warning");
const goal = findTag(ev, "goal");
await this.#getJson("PATCH", "event", {
title,
summary,
image,
tags,
content_warning: contentWarning,
goal,
});
}