Move transmute into transmogrify directory
This commit is contained in:
parent
0d4b9e416c
commit
97e6f1385c
|
@ -3,7 +3,7 @@ import { type Filter, findReplyTag, z } from '@/deps.ts';
|
||||||
import { getAuthor, getFilter, getFollows, publish } from '@/client.ts';
|
import { getAuthor, getFilter, getFollows, publish } from '@/client.ts';
|
||||||
import { parseMetaContent } from '@/schema.ts';
|
import { parseMetaContent } from '@/schema.ts';
|
||||||
import { signEvent } from '@/sign.ts';
|
import { signEvent } from '@/sign.ts';
|
||||||
import { toAccount, toStatus } from '@/transmute.ts';
|
import { toAccount, toStatus } from '@/transmogrify/nostr-to-mastoapi.ts';
|
||||||
import { buildLinkHeader, eventDateComparator, lookupAccount, nostrNow, paginationSchema, parseBody } from '@/utils.ts';
|
import { buildLinkHeader, eventDateComparator, lookupAccount, nostrNow, paginationSchema, parseBody } from '@/utils.ts';
|
||||||
|
|
||||||
const createAccountController: AppController = (c) => {
|
const createAccountController: AppController = (c) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { AppController } from '@/app.ts';
|
import { AppController } from '@/app.ts';
|
||||||
import { lookupAccount } from '../../utils.ts';
|
import { lookupAccount } from '@/utils.ts';
|
||||||
import { toAccount } from '../../transmute.ts';
|
import { toAccount } from '@/transmogrify/nostr-to-mastoapi.ts';
|
||||||
|
|
||||||
const searchController: AppController = async (c) => {
|
const searchController: AppController = async (c) => {
|
||||||
const q = c.req.query('q');
|
const q = c.req.query('q');
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { getAncestors, getDescendants, getEvent, publish } from '@/client.ts';
|
||||||
import { ISO6391, Kind, z } from '@/deps.ts';
|
import { ISO6391, Kind, z } from '@/deps.ts';
|
||||||
import { type Event } from '@/event.ts';
|
import { type Event } from '@/event.ts';
|
||||||
import { signEvent } from '@/sign.ts';
|
import { signEvent } from '@/sign.ts';
|
||||||
import { toStatus } from '@/transmute.ts';
|
import { toStatus } from '@/transmogrify/nostr-to-mastoapi.ts';
|
||||||
import { nostrNow, parseBody } from '@/utils.ts';
|
import { nostrNow, parseBody } from '@/utils.ts';
|
||||||
|
|
||||||
const createStatusSchema = z.object({
|
const createStatusSchema = z.object({
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { getFeed, getFollows, getPublicFeed } from '@/client.ts';
|
import { getFeed, getFollows, getPublicFeed } from '@/client.ts';
|
||||||
import { toStatus } from '@/transmute.ts';
|
import { toStatus } from '@/transmogrify/nostr-to-mastoapi.ts';
|
||||||
import { buildLinkHeader, paginationSchema } from '@/utils.ts';
|
import { buildLinkHeader, paginationSchema } from '@/utils.ts';
|
||||||
|
|
||||||
import type { AppController } from '@/app.ts';
|
import type { AppController } from '@/app.ts';
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
|
import { isCWTag } from 'https://gitlab.com/soapbox-pub/mostr/-/raw/c67064aee5ade5e01597c6d23e22e53c628ef0e2/src/nostr/tags.ts';
|
||||||
|
|
||||||
|
import { getAuthor } from '@/client.ts';
|
||||||
|
import { Conf } from '@/config.ts';
|
||||||
import { findReplyTag, lodash, nip19, sanitizeHtml, TTLCache, unfurl, z } from '@/deps.ts';
|
import { findReplyTag, lodash, nip19, sanitizeHtml, TTLCache, unfurl, z } from '@/deps.ts';
|
||||||
import { type Event } from '@/event.ts';
|
import { type Event } from '@/event.ts';
|
||||||
|
import { verifyNip05Cached } from '@/nip05.ts';
|
||||||
|
import { getMediaLinks, type MediaLink, parseNoteContent } from '@/note.ts';
|
||||||
import { emojiTagSchema, filteredArray, type MetaContent, parseMetaContent } from '@/schema.ts';
|
import { emojiTagSchema, filteredArray, type MetaContent, parseMetaContent } from '@/schema.ts';
|
||||||
|
import { type Nip05, nostrDate, parseNip05, Time } from '@/utils.ts';
|
||||||
import { Conf } from './config.ts';
|
|
||||||
import { getAuthor } from './client.ts';
|
|
||||||
import { verifyNip05Cached } from './nip05.ts';
|
|
||||||
import { getMediaLinks, type MediaLink, parseNoteContent } from './note.ts';
|
|
||||||
import { type Nip05, nostrDate, parseNip05, Time } from './utils.ts';
|
|
||||||
import { isCWTag } from 'https://gitlab.com/soapbox-pub/mostr/-/raw/c67064aee5ade5e01597c6d23e22e53c628ef0e2/src/nostr/tags.ts';
|
|
||||||
|
|
||||||
const DEFAULT_AVATAR = 'https://gleasonator.com/images/avi.png';
|
const DEFAULT_AVATAR = 'https://gleasonator.com/images/avi.png';
|
||||||
const DEFAULT_BANNER = 'https://gleasonator.com/images/banner.png';
|
const DEFAULT_BANNER = 'https://gleasonator.com/images/banner.png';
|
Loading…
Reference in New Issue