Copy overhaul + qr designs
This commit is contained in:
@@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from 'next/server';
|
||||
import { tiktokApi } from '@/lib/tiktok';
|
||||
|
||||
// Live read-only stats from the Display API. Requires the user.info.stats and
|
||||
// video.list scopes — accounts connected before the scope change must
|
||||
// video.list scopes - accounts connected before the scope change must
|
||||
// re-authorize via /api/tiktok/connect.
|
||||
|
||||
const USER_FIELDS = 'display_name,follower_count,following_count,likes_count,video_count';
|
||||
|
||||
@@ -5,7 +5,7 @@ import { TIKTOK_BRAND, getValidTiktokTokens } from '@/lib/tiktok';
|
||||
export async function GET(request: NextRequest) {
|
||||
const adminKey = process.env.TIKTOK_ADMIN_KEY;
|
||||
if (!adminKey) {
|
||||
// Unlike /connect, this endpoint hands out live credentials — never expose
|
||||
// Unlike /connect, this endpoint hands out live credentials - never expose
|
||||
// it without a configured key.
|
||||
return NextResponse.json(
|
||||
{ error: 'TIKTOK_ADMIN_KEY must be configured to expose TikTok status' },
|
||||
|
||||
@@ -135,7 +135,7 @@ export async function POST(request: NextRequest) {
|
||||
media_type: 'PHOTO',
|
||||
// MEDIA_UPLOAD = draft in the creator's TikTok inbox (posting
|
||||
// policy is upload/draft only) and only needs the video.upload
|
||||
// scope — QRMaster has no video.publish.
|
||||
// scope - QRMaster has no video.publish.
|
||||
post_mode: 'MEDIA_UPLOAD',
|
||||
post_info: {
|
||||
...(title ? { title } : {}),
|
||||
|
||||
Reference in New Issue
Block a user