Move transmute into transmogrify directory

This commit is contained in:
Alex Gleason 2023-07-13 20:17:31 -05:00
parent 0d4b9e416c
commit 97e6f1385c
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
6 changed files with 12 additions and 12 deletions

View File

@ -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) => {

View File

@ -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');

View File

@ -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({

View File

@ -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';

View File

@ -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';