Squash merge nostrfeed-ui into main
This commit is contained in:
parent
5063a3e121
commit
cc5e0dbef6
10 changed files with 379 additions and 258 deletions
|
|
@ -341,11 +341,9 @@ const generateRideshareContent = (values: any): string => {
|
|||
}
|
||||
|
||||
if (values.details?.trim()) {
|
||||
content += `\n📝 Details: ${values.details.trim()}\n`
|
||||
content += `\n📝 Details: ${values.details.trim()}`
|
||||
}
|
||||
|
||||
content += `\n#rideshare #carpool #transport`
|
||||
|
||||
return content
|
||||
}
|
||||
|
||||
|
|
@ -359,22 +357,23 @@ const generateRideshareTags = (values: any): string[][] => {
|
|||
tags.push(['t', 'transport'])
|
||||
|
||||
// Rideshare-specific tags (custom)
|
||||
tags.push(['rideshare_type', values.type]) // 'offering' or 'seeking'
|
||||
tags.push(['rideshare_from', values.fromLocation])
|
||||
tags.push(['rideshare_to', values.toLocation])
|
||||
tags.push(['rideshare_date', values.date])
|
||||
tags.push(['rideshare_time', values.time])
|
||||
// Note: All tag values must be strings per Nostr protocol
|
||||
tags.push(['rideshare_type', String(values.type)]) // 'offering' or 'seeking'
|
||||
tags.push(['rideshare_from', String(values.fromLocation)])
|
||||
tags.push(['rideshare_to', String(values.toLocation)])
|
||||
tags.push(['rideshare_date', String(values.date)])
|
||||
tags.push(['rideshare_time', String(values.time)])
|
||||
|
||||
if (values.type === 'offering' && values.seats) {
|
||||
tags.push(['rideshare_seats', values.seats])
|
||||
tags.push(['rideshare_seats', String(values.seats)])
|
||||
}
|
||||
|
||||
if (values.price) {
|
||||
tags.push(['rideshare_price', values.price])
|
||||
tags.push(['rideshare_price', String(values.price)])
|
||||
}
|
||||
|
||||
if (values.contactMethod) {
|
||||
tags.push(['rideshare_contact', values.contactMethod])
|
||||
tags.push(['rideshare_contact', String(values.contactMethod)])
|
||||
}
|
||||
|
||||
return tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue