feat: disable x analytics
This commit is contained in:
parent
5f23ced2f3
commit
b401776d67
|
|
@ -43,6 +43,7 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
|
|||
neynarClientId={process.env.NEYNAR_CLIENT_ID!}
|
||||
isSecured={!process.env.NOT_SECURED}
|
||||
disableImageCompression={!!process.env.DISABLE_IMAGE_COMPRESSION}
|
||||
disableXAnalytics={!!process.env.DISABLE_X_ANALYTICS}
|
||||
transloadit={
|
||||
process.env.TRANSLOADIT_AUTH && process.env.TRANSLOADIT_TEMPLATE
|
||||
? [
|
||||
|
|
|
|||
|
|
@ -354,26 +354,6 @@ export class XProvider extends SocialAbstract implements SocialProvider {
|
|||
}));
|
||||
}
|
||||
|
||||
communities(accessToken: string, data: { search: string }) {
|
||||
const [accessTokenSplit, accessSecretSplit] = accessToken.split(':');
|
||||
const client = new TwitterApi({
|
||||
appKey: process.env.X_API_KEY!,
|
||||
appSecret: process.env.X_API_SECRET!,
|
||||
accessToken: accessTokenSplit,
|
||||
accessSecret: accessSecretSplit,
|
||||
});
|
||||
|
||||
return client.v2.searchCommunities(data.search);
|
||||
|
||||
// })).data.map(p => {
|
||||
// return {
|
||||
// id: p.id,
|
||||
// name: p.name,
|
||||
// accessToken
|
||||
// }
|
||||
// })
|
||||
}
|
||||
|
||||
private loadAllTweets = async (
|
||||
client: TwitterApi,
|
||||
id: string,
|
||||
|
|
|
|||
Loading…
Reference in New Issue