move api/user to providers/twitter/profile

This commit is contained in:
dangered wolf 2023-11-03 16:31:36 -04:00
parent e2538debbf
commit 92ef6d5b08
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
3 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@ import { handleMosaic } from '../../helpers/mosaic';
// import { translateTweet } from '../../helpers/translate'; // import { translateTweet } from '../../helpers/translate';
import { unescapeText } from '../../helpers/utils'; import { unescapeText } from '../../helpers/utils';
import { processMedia } from '../../helpers/media'; import { processMedia } from '../../helpers/media';
import { convertToApiUser } from '../../api/user'; import { convertToApiUser } from './profile';
import { translateTweet } from '../../helpers/translate'; import { translateTweet } from '../../helpers/translate';
export const buildAPITweet = async ( export const buildAPITweet = async (

View file

@ -1,6 +1,6 @@
import { Constants } from '../constants'; import { Constants } from '../../constants';
import { fetchUser } from '../fetch'; import { fetchUser } from '../../fetch';
import { linkFixer } from '../helpers/linkFixer'; import { linkFixer } from '../../helpers/linkFixer';
export const convertToApiUser = (user: GraphQLUser, legacyAPI = false): APIUser => { export const convertToApiUser = (user: GraphQLUser, legacyAPI = false): APIUser => {
const apiUser = {} as APIUser; const apiUser = {} as APIUser;

View file

@ -1,6 +1,6 @@
import { Constants } from './constants'; import { Constants } from './constants';
import { Strings } from './strings'; import { Strings } from './strings';
import { userAPI } from './api/user'; import { userAPI } from './providers/twitter/profile';
export const returnError = (error: string): StatusResponse => { export const returnError = (error: string): StatusResponse => {
return { return {