Add profile image enlargement and refine article display
Implement image enlargement for profile pictures, add relative time display for articles using "X min ago", and ensure articles are sorted by publication date. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0fb68265-c270-4198-9584-3d9be9bddb41 Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/0fb68265-c270-4198-9584-3d9be9bddb41/rOJiPGe
This commit is contained in:
@ -28,7 +28,7 @@ import {
|
||||
type InsertPredictionBet,
|
||||
} from "@shared/schema";
|
||||
import { db } from "./db";
|
||||
import { eq, desc, and, ilike, sql } from "drizzle-orm";
|
||||
import { eq, desc, asc, and, ilike, sql } from "drizzle-orm";
|
||||
|
||||
// Interface for storage operations
|
||||
export interface IStorage {
|
||||
@ -149,7 +149,7 @@ export class DatabaseStorage implements IStorage {
|
||||
.select()
|
||||
.from(articles)
|
||||
.where(eq(articles.mediaOutletId, mediaOutletId))
|
||||
.orderBy(desc(articles.publishedAt));
|
||||
.orderBy(asc(articles.publishedMinutesAgo), desc(articles.publishedAt));
|
||||
}
|
||||
|
||||
async getArticleBySlug(slug: string): Promise<Article | undefined> {
|
||||
|
||||
Reference in New Issue
Block a user