Compare commits
No commits in common. "a3c421d34a29b3b17e8e1b6d3f0d7fbd3f158081" and "5c286c6b97a36e2eb5dcc97dea1480ca43a02ccf" have entirely different histories.
a3c421d34a
...
5c286c6b97
@ -53,7 +53,7 @@ export class AuthController {
|
||||
const { hostname } = window.location
|
||||
|
||||
const authEvent: EventTemplate = {
|
||||
kind: 27235,
|
||||
kind: 1,
|
||||
tags: [],
|
||||
content: `${hostname}-${timestamp}`,
|
||||
created_at: timestamp
|
||||
|
@ -204,15 +204,15 @@ export class MetadataController {
|
||||
|
||||
if (userRelays.length === 0) return null
|
||||
|
||||
// filter for finding user's first kind 0 event
|
||||
// filter for finding user's first kind 1 event
|
||||
const eventFilter: Filter = {
|
||||
kinds: [kinds.Metadata],
|
||||
kinds: [kinds.ShortTextNote],
|
||||
authors: [hexKey]
|
||||
}
|
||||
|
||||
const pool = new SimplePool()
|
||||
|
||||
// find user's kind 0 events published on user's relays
|
||||
// find user's kind 1 events published on user's relays
|
||||
const events = await pool.querySync(userRelays, eventFilter)
|
||||
if (events && events.length) {
|
||||
// sort events by created_at time in ascending order
|
||||
|
@ -189,7 +189,7 @@ export const signEventForMetaFile = async (
|
||||
) => {
|
||||
// Construct the event metadata for the meta file
|
||||
const event: EventTemplate = {
|
||||
kind: 27235, // Event type for meta file
|
||||
kind: 1, // Event type for meta file
|
||||
content: content, // content for event
|
||||
created_at: Math.floor(Date.now() / 1000), // Current timestamp
|
||||
tags: []
|
||||
|
Loading…
Reference in New Issue
Block a user