From 92ef6d5b08d4ca2638b42ead62ec351272d32b8d Mon Sep 17 00:00:00 2001 From: dangered wolf <d@ngeredwolf.me> Date: Fri, 3 Nov 2023 16:31:36 -0400 Subject: [PATCH] move api/user to providers/twitter/profile --- src/providers/twitter/processor.ts | 2 +- src/{api/user.ts => providers/twitter/profile.ts} | 6 +++--- src/user.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/{api/user.ts => providers/twitter/profile.ts} (96%) diff --git a/src/providers/twitter/processor.ts b/src/providers/twitter/processor.ts index 4ac778c..62e7b76 100644 --- a/src/providers/twitter/processor.ts +++ b/src/providers/twitter/processor.ts @@ -5,7 +5,7 @@ import { handleMosaic } from '../../helpers/mosaic'; // import { translateTweet } from '../../helpers/translate'; import { unescapeText } from '../../helpers/utils'; import { processMedia } from '../../helpers/media'; -import { convertToApiUser } from '../../api/user'; +import { convertToApiUser } from './profile'; import { translateTweet } from '../../helpers/translate'; export const buildAPITweet = async ( diff --git a/src/api/user.ts b/src/providers/twitter/profile.ts similarity index 96% rename from src/api/user.ts rename to src/providers/twitter/profile.ts index 2799ac4..fffb15f 100644 --- a/src/api/user.ts +++ b/src/providers/twitter/profile.ts @@ -1,6 +1,6 @@ -import { Constants } from '../constants'; -import { fetchUser } from '../fetch'; -import { linkFixer } from '../helpers/linkFixer'; +import { Constants } from '../../constants'; +import { fetchUser } from '../../fetch'; +import { linkFixer } from '../../helpers/linkFixer'; export const convertToApiUser = (user: GraphQLUser, legacyAPI = false): APIUser => { const apiUser = {} as APIUser; diff --git a/src/user.ts b/src/user.ts index 736f600..bf976cb 100644 --- a/src/user.ts +++ b/src/user.ts @@ -1,6 +1,6 @@ import { Constants } from './constants'; import { Strings } from './strings'; -import { userAPI } from './api/user'; +import { userAPI } from './providers/twitter/profile'; export const returnError = (error: string): StatusResponse => { return {