Add feature to share generated memes on twitter and verify tweet #10

Merged
nabarun merged 16 commits from ag-dynamic-page into main 2025-02-06 05:45:03 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 8b80ee2cd6 - Show all commits

View File

@ -95,7 +95,7 @@ const AIServiceCard: React.FC<AIServiceCardProps> = ({
const cid = imageUrl.split("/image/")[1];
const memeUrl = `${baseUrl}memes/${cid}`;
const tweetText = `Check out this meme that I generated! \n TX Hash: '${transactionSignature}' \n @${process.env.ACCOUNT_HANDLE} \n`;
const tweetText = `Check out this meme that I generated! \n TX Hash: '${transactionSignature}' \n @${process.env.NEXT_PUBLIC_ACCOUNT_HANDLE} \n`;
return `https://twitter.com/intent/tweet?text=${encodeURIComponent(tweetText)}&url=${encodeURIComponent(memeUrl)}`;
};

View File

@ -1,14 +1,14 @@
import { DataSource } from 'typeorm';
import { Payment } from './entity/Payment';
import { Tweet } from './entity/Tweet';
export const AppDataSource = new DataSource({
type: 'sqlite',
database: './database.sqlite',
synchronize: true,
logging: false,
entities: [Payment, Tweet],
// entities: [__dirname + "./entity/*{.js,.ts}"],
entities: [Payment],
migrations: [],
subscribers: [],
});