fix: use correct host tag pos
This commit is contained in:
@ -111,7 +111,7 @@ public class OpenGraphController : Controller
|
|||||||
{
|
{
|
||||||
case (long)NostrKind.LiveEvent:
|
case (long)NostrKind.LiveEvent:
|
||||||
{
|
{
|
||||||
var host = ev.Tags.FirstOrDefault(a => a is {Key: "p", Values: [_, _, "host"]})?.Values[1] ?? ev.PubKey.ToHex();
|
var host = ev.Tags.FirstOrDefault(a => a is {Key: "p", Values: [_, "host", ..]})?.Values[1] ?? ev.PubKey.ToHex();
|
||||||
var hostProfile = await _redisStore.GetProfile(host);
|
var hostProfile = await _redisStore.GetProfile(host);
|
||||||
var hostName = hostProfile?.Name ?? profile?.Name ?? "Nostrich";
|
var hostName = hostProfile?.Name ?? profile?.Name ?? "Nostrich";
|
||||||
var stream = ev.GetFirstTagValue("streaming") ?? ev.GetFirstTagValue("recording") ?? "";
|
var stream = ev.GetFirstTagValue("streaming") ?? ev.GetFirstTagValue("recording") ?? "";
|
||||||
|
Reference in New Issue
Block a user