Improve backend media readiness for mobile clients
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled
هذا الالتزام موجود في:
@@ -4,6 +4,7 @@ import { Types } from 'mongoose';
|
||||
import { ModerationStatus } from '../../common/enums/moderation-status.enum';
|
||||
import { PostType } from '../../common/enums/post-type.enum';
|
||||
import { PostVisibility } from '../../common/enums/post-visibility.enum';
|
||||
import { ProcessingStatus } from '../../common/enums/processing-status.enum';
|
||||
import { buildPaginatedResponse } from '../../common/utils/pagination.util';
|
||||
import { resolveMongoSortDirection } from '../../common/utils/sort.util';
|
||||
import {
|
||||
@@ -172,6 +173,7 @@ export class PostsService {
|
||||
latitude,
|
||||
longitude,
|
||||
postType,
|
||||
processingStatus: ProcessingStatus.READY,
|
||||
visibility: dto.visibility ?? PostVisibility.PUBLIC,
|
||||
commentsDisabled: dto.commentsDisabled ?? false,
|
||||
commentsFollowersOnly: dto.commentsFollowersOnly ?? false,
|
||||
@@ -372,6 +374,7 @@ export class PostsService {
|
||||
latitude: nextLatitude,
|
||||
longitude: nextLongitude,
|
||||
postType: nextPostType,
|
||||
processingStatus: ProcessingStatus.READY,
|
||||
...mediaMetadata,
|
||||
};
|
||||
|
||||
@@ -1247,6 +1250,7 @@ export class PostsService {
|
||||
const post = await this.postsRepository.create(userId, {
|
||||
content,
|
||||
postType: PostType.TEXT,
|
||||
processingStatus: ProcessingStatus.READY,
|
||||
visibility: dto.visibility ?? PostVisibility.PUBLIC,
|
||||
repostOfPostId: content ? null : new Types.ObjectId(sourcePostId),
|
||||
quoteOfPostId: content ? new Types.ObjectId(sourcePostId) : null,
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم