Save stream goal link
This commit is contained in:
@ -40,7 +40,7 @@ public class StreamEventBuilder
|
||||
new("image", stream.Thumbnail ?? user.Image ?? ""),
|
||||
new("status", status),
|
||||
new("p", user.PubKey, "", "host"),
|
||||
new("relays", _config.Relays),
|
||||
new("relays", _config.Relays)
|
||||
};
|
||||
|
||||
if (status == "live")
|
||||
@ -66,6 +66,11 @@ public class StreamEventBuilder
|
||||
tags.Add(new("t", tag));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(user.Goal))
|
||||
{
|
||||
tags.Add(new("goal", user.Goal));
|
||||
}
|
||||
|
||||
var ev = new NostrEvent
|
||||
{
|
||||
Kind = StreamEventKind,
|
||||
|
@ -98,6 +98,7 @@ public class UserService
|
||||
.SetProperty(v => v.Summary, req.Summary)
|
||||
.SetProperty(v => v.Image, req.Image)
|
||||
.SetProperty(v => v.Tags, req.Tags.Length > 0 ? string.Join(",", req.Tags) : null)
|
||||
.SetProperty(v => v.ContentWarning, req.ContentWarning));
|
||||
.SetProperty(v => v.ContentWarning, req.ContentWarning)
|
||||
.SetProperty(v => v.Goal, req.Goal));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user