mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-11 11:27:03 +00:00
Add timezone and locale to alerts
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import * as nip19 from "nostr-tools/nip19"
|
import * as nip19 from "nostr-tools/nip19"
|
||||||
import {get} from "svelte/store"
|
import {get} from "svelte/store"
|
||||||
import {randomId, ifLet, poll, uniq, equals} from "@welshman/lib"
|
import {randomId, ifLet, poll, uniq, equals, TIMEZONE, LOCALE} from "@welshman/lib"
|
||||||
import type {Feed} from "@welshman/feeds"
|
import type {Feed} from "@welshman/feeds"
|
||||||
import type {TrustedEvent, EventContent} from "@welshman/util"
|
import type {TrustedEvent, EventContent} from "@welshman/util"
|
||||||
import {
|
import {
|
||||||
@@ -418,6 +418,8 @@ export const makeAlert = async ({cron, email, feed, bunker, secret, description}
|
|||||||
["feed", JSON.stringify(feed)],
|
["feed", JSON.stringify(feed)],
|
||||||
["cron", cron],
|
["cron", cron],
|
||||||
["email", email],
|
["email", email],
|
||||||
|
["locale", LOCALE],
|
||||||
|
["timezone", TIMEZONE],
|
||||||
["description", description],
|
["description", description],
|
||||||
["channel", "email"],
|
["channel", "email"],
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user