mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-26 08:41:30 +02:00
Add timezones to CalendarEvent
This commit is contained in:
parent
96dfeac1bd
commit
a5767c9b5a
@ -25,6 +25,8 @@ type CalendarEvent struct {
|
|||||||
Participants []Participant
|
Participants []Participant
|
||||||
References []string
|
References []string
|
||||||
Hashtags []string
|
Hashtags []string
|
||||||
|
StartTzid string
|
||||||
|
EndTzid string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Participant struct {
|
type Participant struct {
|
||||||
@ -91,6 +93,10 @@ func ParseCalendarEvent(event nostr.Event) CalendarEvent {
|
|||||||
calev.References = append(calev.References, tag[1])
|
calev.References = append(calev.References, tag[1])
|
||||||
case "t":
|
case "t":
|
||||||
calev.Hashtags = append(calev.Hashtags, tag[1])
|
calev.Hashtags = append(calev.Hashtags, tag[1])
|
||||||
|
case "start_tzid":
|
||||||
|
calev.StartTzid = tag[1]
|
||||||
|
case "end_tzid":
|
||||||
|
calev.EndTzid = tag[1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return calev
|
return calev
|
||||||
|
Loading…
x
Reference in New Issue
Block a user