diff --git a/src/components/content/courses/CourseDetails.js b/src/components/content/courses/CourseDetails.js index 14193cf..82c9c7f 100644 --- a/src/components/content/courses/CourseDetails.js +++ b/src/components/content/courses/CourseDetails.js @@ -155,7 +155,7 @@ export default function CourseDetails({ processedEvent, paidCourse, lessons, dec alt="course image" src={returnImageProxy(processedEvent.image)} fill - className="object-cover" + className="object-cover rounded-b-lg" />
diff --git a/src/components/content/documents/DocumentDetails.js b/src/components/content/documents/DocumentDetails.js index 0f6e9af..ca067e8 100644 --- a/src/components/content/documents/DocumentDetails.js +++ b/src/components/content/documents/DocumentDetails.js @@ -132,7 +132,7 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price, alt="background image" src={returnImageProxy(image)} fill - className="object-cover" + className="object-cover rounded-b-lg" /> diff --git a/src/components/feeds/StackerNewsFeed.js b/src/components/feeds/StackerNewsFeed.js index c416db5..ae0785b 100644 --- a/src/components/feeds/StackerNewsFeed.js +++ b/src/components/feeds/StackerNewsFeed.js @@ -54,7 +54,7 @@ const StackerNewsFeed = ({ searchQuery }) => { content: item.title, timestamp: item.createdAt, channel: "~devs", - additionalContent: `Comments: ${item.comments.length} | Sats: ${item.sats}` + additionalContent: `Sats: ${item.sats}` }} searchQuery={searchQuery} windowWidth={windowWidth} diff --git a/src/pages/api/auth/[...nextauth].js b/src/pages/api/auth/[...nextauth].js index 32b93f1..f69087d 100644 --- a/src/pages/api/auth/[...nextauth].js +++ b/src/pages/api/auth/[...nextauth].js @@ -4,7 +4,6 @@ import EmailProvider from "next-auth/providers/email"; import GithubProvider from "next-auth/providers/github"; import { PrismaAdapter } from "@next-auth/prisma-adapter"; import prisma from "@/db/prisma"; -import nodemailer from 'nodemailer'; import { findKind0Fields } from "@/utils/nostr"; import { generateSecretKey, getPublicKey } from 'nostr-tools/pure'; import { bytesToHex } from '@noble/hashes/utils'; diff --git a/src/pages/api/invoices/polling.js b/src/pages/api/invoices/polling.js index 9df0e28..7262c2d 100644 --- a/src/pages/api/invoices/polling.js +++ b/src/pages/api/invoices/polling.js @@ -5,17 +5,8 @@ import { SimplePool } from 'nostr-tools/pool'; import appConfig from '@/config/appConfig'; const ZAP_PRIVKEY = process.env.ZAP_PRIVKEY; -const PLEBDEVS_API_KEY = process.env.PLEBDEVS_API_KEY; -// todo use cron secret???? export default async function handler(req, res) { - // Verify API key - // const apiKey = req.headers['authorization']; - // if (!apiKey || apiKey !== PLEBDEVS_API_KEY) { - // res.status(401).json({ error: 'Unauthorized' }); - // return; - // } - try { // Add execution time limit protection const startTime = Date.now(); diff --git a/src/pages/api/stackernews.js b/src/pages/api/stackernews.js index 3852343..53d9689 100644 --- a/src/pages/api/stackernews.js +++ b/src/pages/api/stackernews.js @@ -18,15 +18,6 @@ export default async function handler(req, res) { name } sats - comments { - id - text - createdAt - user { - name - } - sats - } } } } diff --git a/src/pages/api/users/subscription/cron.js b/src/pages/api/users/subscription/cron.js index df70ef7..9171063 100644 --- a/src/pages/api/users/subscription/cron.js +++ b/src/pages/api/users/subscription/cron.js @@ -6,10 +6,6 @@ const lnAddress = process.env.LIGHTNING_ADDRESS; const amount = 50000; // Set the subscription amount in satoshis export default async function handler(req, res) { - // if (req.headers.authorization !== process.env.CRON_SECRET) { - // return res.status(401).json({ error: 'Unauthorized' }); - // } - if (req.method === 'GET') { try { const expiredSubscriptions = await findExpiredSubscriptions();