cw
This commit is contained in:
parent
5c3ca62426
commit
75c4c844e6
3 changed files with 17 additions and 1 deletions
|
@ -18,6 +18,10 @@ export function isValidText(text: string): boolean {
|
|||
return text.length <= 1000 && text.trim() != '';
|
||||
}
|
||||
|
||||
export function isValidCw(text: string): boolean {
|
||||
return text.length <= 100 && text.trim() != '';
|
||||
}
|
||||
|
||||
export type IPost = {
|
||||
_id: mongo.ObjectID;
|
||||
channelId: mongo.ObjectID;
|
||||
|
@ -27,6 +31,7 @@ export type IPost = {
|
|||
repostId: mongo.ObjectID;
|
||||
poll: any; // todo
|
||||
text: string;
|
||||
cw: string;
|
||||
userId: mongo.ObjectID;
|
||||
appId: mongo.ObjectID;
|
||||
viaMobile: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue