Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export function parse(acct) {
|
||||
return {
|
||||
text: acct.text,
|
||||
cw: acct.cw,
|
||||
localOnly: acct.localOnly,
|
||||
createdAt: new Date(acct.createdAt)
|
||||
};
|
||||
}
|
||||
export function toJson(acct) {
|
||||
return ({
|
||||
text: acct.text,
|
||||
cw: acct.cw,
|
||||
localOnly: acct.localOnly
|
||||
}).toString();
|
||||
}
|
||||
Reference in New Issue
Block a user