@atproto/api 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/lexicons.d.ts +12 -0
- package/dist/client/types/app/bsky/embed/record.d.ts +3 -0
- package/dist/index.js +78 -43
- package/dist/index.js.map +2 -2
- package/dist/moderation/accumulator.d.ts +1 -0
- package/dist/moderation/types.d.ts +4 -0
- package/package.json +1 -1
- package/src/client/lexicons.ts +14 -2
- package/src/client/types/app/bsky/embed/record.ts +3 -0
- package/src/moderation/accumulator.ts +15 -1
- package/src/moderation/subjects/quoted-post.ts +18 -0
- package/src/moderation/types.ts +1 -0
- package/src/moderation/util.ts +2 -14
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -4001,6 +4001,10 @@ export declare const schemaDict: {
|
|
|
4001
4001
|
type: string;
|
|
4002
4002
|
format: string;
|
|
4003
4003
|
};
|
|
4004
|
+
notFound: {
|
|
4005
|
+
type: string;
|
|
4006
|
+
const: boolean;
|
|
4007
|
+
};
|
|
4004
4008
|
};
|
|
4005
4009
|
};
|
|
4006
4010
|
viewBlocked: {
|
|
@@ -4011,6 +4015,14 @@ export declare const schemaDict: {
|
|
|
4011
4015
|
type: string;
|
|
4012
4016
|
format: string;
|
|
4013
4017
|
};
|
|
4018
|
+
blocked: {
|
|
4019
|
+
type: string;
|
|
4020
|
+
const: boolean;
|
|
4021
|
+
};
|
|
4022
|
+
author: {
|
|
4023
|
+
type: string;
|
|
4024
|
+
ref: string;
|
|
4025
|
+
};
|
|
4014
4026
|
};
|
|
4015
4027
|
};
|
|
4016
4028
|
};
|
|
@@ -39,12 +39,15 @@ export declare function isViewRecord(v: unknown): v is ViewRecord;
|
|
|
39
39
|
export declare function validateViewRecord(v: unknown): ValidationResult;
|
|
40
40
|
export interface ViewNotFound {
|
|
41
41
|
uri: string;
|
|
42
|
+
notFound: true;
|
|
42
43
|
[k: string]: unknown;
|
|
43
44
|
}
|
|
44
45
|
export declare function isViewNotFound(v: unknown): v is ViewNotFound;
|
|
45
46
|
export declare function validateViewNotFound(v: unknown): ValidationResult;
|
|
46
47
|
export interface ViewBlocked {
|
|
47
48
|
uri: string;
|
|
49
|
+
blocked: true;
|
|
50
|
+
author: AppBskyFeedDefs.BlockedAuthor;
|
|
48
51
|
[k: string]: unknown;
|
|
49
52
|
}
|
|
50
53
|
export declare function isViewBlocked(v: unknown): v is ViewBlocked;
|
package/dist/index.js
CHANGED
|
@@ -19952,21 +19952,33 @@ var schemaDict = {
|
|
|
19952
19952
|
},
|
|
19953
19953
|
viewNotFound: {
|
|
19954
19954
|
type: "object",
|
|
19955
|
-
required: ["uri"],
|
|
19955
|
+
required: ["uri", "notFound"],
|
|
19956
19956
|
properties: {
|
|
19957
19957
|
uri: {
|
|
19958
19958
|
type: "string",
|
|
19959
19959
|
format: "at-uri"
|
|
19960
|
+
},
|
|
19961
|
+
notFound: {
|
|
19962
|
+
type: "boolean",
|
|
19963
|
+
const: true
|
|
19960
19964
|
}
|
|
19961
19965
|
}
|
|
19962
19966
|
},
|
|
19963
19967
|
viewBlocked: {
|
|
19964
19968
|
type: "object",
|
|
19965
|
-
required: ["uri"],
|
|
19969
|
+
required: ["uri", "blocked", "author"],
|
|
19966
19970
|
properties: {
|
|
19967
19971
|
uri: {
|
|
19968
19972
|
type: "string",
|
|
19969
19973
|
format: "at-uri"
|
|
19974
|
+
},
|
|
19975
|
+
blocked: {
|
|
19976
|
+
type: "boolean",
|
|
19977
|
+
const: true
|
|
19978
|
+
},
|
|
19979
|
+
author: {
|
|
19980
|
+
type: "ref",
|
|
19981
|
+
ref: "lex:app.bsky.feed.defs#blockedAuthor"
|
|
19970
19982
|
}
|
|
19971
19983
|
}
|
|
19972
19984
|
}
|
|
@@ -22294,7 +22306,7 @@ __export(getRecord_exports, {
|
|
|
22294
22306
|
});
|
|
22295
22307
|
var RecordNotFoundError = class extends XRPCError {
|
|
22296
22308
|
constructor(src2) {
|
|
22297
|
-
super(src2.status, src2.error, src2.message
|
|
22309
|
+
super(src2.status, src2.error, src2.message);
|
|
22298
22310
|
}
|
|
22299
22311
|
};
|
|
22300
22312
|
function toKnownErr9(e) {
|
|
@@ -22313,7 +22325,7 @@ __export(getRepo_exports, {
|
|
|
22313
22325
|
});
|
|
22314
22326
|
var RepoNotFoundError = class extends XRPCError {
|
|
22315
22327
|
constructor(src2) {
|
|
22316
|
-
super(src2.status, src2.error, src2.message
|
|
22328
|
+
super(src2.status, src2.error, src2.message);
|
|
22317
22329
|
}
|
|
22318
22330
|
};
|
|
22319
22331
|
function toKnownErr10(e) {
|
|
@@ -22333,12 +22345,12 @@ __export(rebaseRepo_exports, {
|
|
|
22333
22345
|
});
|
|
22334
22346
|
var InvalidSwapError = class extends XRPCError {
|
|
22335
22347
|
constructor(src2) {
|
|
22336
|
-
super(src2.status, src2.error, src2.message
|
|
22348
|
+
super(src2.status, src2.error, src2.message);
|
|
22337
22349
|
}
|
|
22338
22350
|
};
|
|
22339
22351
|
var ConcurrentWritesError = class extends XRPCError {
|
|
22340
22352
|
constructor(src2) {
|
|
22341
|
-
super(src2.status, src2.error, src2.message
|
|
22353
|
+
super(src2.status, src2.error, src2.message);
|
|
22342
22354
|
}
|
|
22343
22355
|
};
|
|
22344
22356
|
function toKnownErr11(e) {
|
|
@@ -22403,7 +22415,7 @@ __export(takeModerationAction_exports, {
|
|
|
22403
22415
|
});
|
|
22404
22416
|
var SubjectHasActionError = class extends XRPCError {
|
|
22405
22417
|
constructor(src2) {
|
|
22406
|
-
super(src2.status, src2.error, src2.message
|
|
22418
|
+
super(src2.status, src2.error, src2.message);
|
|
22407
22419
|
}
|
|
22408
22420
|
};
|
|
22409
22421
|
function toKnownErr16(e) {
|
|
@@ -22504,7 +22516,7 @@ function hasProp2(data, prop) {
|
|
|
22504
22516
|
// src/client/types/com/atproto/repo/applyWrites.ts
|
|
22505
22517
|
var InvalidSwapError2 = class extends XRPCError {
|
|
22506
22518
|
constructor(src2) {
|
|
22507
|
-
super(src2.status, src2.error, src2.message
|
|
22519
|
+
super(src2.status, src2.error, src2.message);
|
|
22508
22520
|
}
|
|
22509
22521
|
};
|
|
22510
22522
|
function toKnownErr23(e) {
|
|
@@ -22541,7 +22553,7 @@ __export(createRecord_exports, {
|
|
|
22541
22553
|
});
|
|
22542
22554
|
var InvalidSwapError3 = class extends XRPCError {
|
|
22543
22555
|
constructor(src2) {
|
|
22544
|
-
super(src2.status, src2.error, src2.message
|
|
22556
|
+
super(src2.status, src2.error, src2.message);
|
|
22545
22557
|
}
|
|
22546
22558
|
};
|
|
22547
22559
|
function toKnownErr24(e) {
|
|
@@ -22560,7 +22572,7 @@ __export(deleteRecord_exports, {
|
|
|
22560
22572
|
});
|
|
22561
22573
|
var InvalidSwapError4 = class extends XRPCError {
|
|
22562
22574
|
constructor(src2) {
|
|
22563
|
-
super(src2.status, src2.error, src2.message
|
|
22575
|
+
super(src2.status, src2.error, src2.message);
|
|
22564
22576
|
}
|
|
22565
22577
|
};
|
|
22566
22578
|
function toKnownErr25(e) {
|
|
@@ -22620,7 +22632,7 @@ __export(putRecord_exports, {
|
|
|
22620
22632
|
});
|
|
22621
22633
|
var InvalidSwapError5 = class extends XRPCError {
|
|
22622
22634
|
constructor(src2) {
|
|
22623
|
-
super(src2.status, src2.error, src2.message
|
|
22635
|
+
super(src2.status, src2.error, src2.message);
|
|
22624
22636
|
}
|
|
22625
22637
|
};
|
|
22626
22638
|
function toKnownErr29(e) {
|
|
@@ -22640,12 +22652,12 @@ __export(rebaseRepo_exports2, {
|
|
|
22640
22652
|
});
|
|
22641
22653
|
var InvalidSwapError6 = class extends XRPCError {
|
|
22642
22654
|
constructor(src2) {
|
|
22643
|
-
super(src2.status, src2.error, src2.message
|
|
22655
|
+
super(src2.status, src2.error, src2.message);
|
|
22644
22656
|
}
|
|
22645
22657
|
};
|
|
22646
22658
|
var ConcurrentWritesError2 = class extends XRPCError {
|
|
22647
22659
|
constructor(src2) {
|
|
22648
|
-
super(src2.status, src2.error, src2.message
|
|
22660
|
+
super(src2.status, src2.error, src2.message);
|
|
22649
22661
|
}
|
|
22650
22662
|
};
|
|
22651
22663
|
function toKnownErr30(e) {
|
|
@@ -22683,37 +22695,37 @@ __export(createAccount_exports, {
|
|
|
22683
22695
|
});
|
|
22684
22696
|
var InvalidHandleError2 = class extends XRPCError {
|
|
22685
22697
|
constructor(src2) {
|
|
22686
|
-
super(src2.status, src2.error, src2.message
|
|
22698
|
+
super(src2.status, src2.error, src2.message);
|
|
22687
22699
|
}
|
|
22688
22700
|
};
|
|
22689
22701
|
var InvalidPasswordError = class extends XRPCError {
|
|
22690
22702
|
constructor(src2) {
|
|
22691
|
-
super(src2.status, src2.error, src2.message
|
|
22703
|
+
super(src2.status, src2.error, src2.message);
|
|
22692
22704
|
}
|
|
22693
22705
|
};
|
|
22694
22706
|
var InvalidInviteCodeError = class extends XRPCError {
|
|
22695
22707
|
constructor(src2) {
|
|
22696
|
-
super(src2.status, src2.error, src2.message
|
|
22708
|
+
super(src2.status, src2.error, src2.message);
|
|
22697
22709
|
}
|
|
22698
22710
|
};
|
|
22699
22711
|
var HandleNotAvailableError = class extends XRPCError {
|
|
22700
22712
|
constructor(src2) {
|
|
22701
|
-
super(src2.status, src2.error, src2.message
|
|
22713
|
+
super(src2.status, src2.error, src2.message);
|
|
22702
22714
|
}
|
|
22703
22715
|
};
|
|
22704
22716
|
var UnsupportedDomainError = class extends XRPCError {
|
|
22705
22717
|
constructor(src2) {
|
|
22706
|
-
super(src2.status, src2.error, src2.message
|
|
22718
|
+
super(src2.status, src2.error, src2.message);
|
|
22707
22719
|
}
|
|
22708
22720
|
};
|
|
22709
22721
|
var UnresolvableDidError = class extends XRPCError {
|
|
22710
22722
|
constructor(src2) {
|
|
22711
|
-
super(src2.status, src2.error, src2.message
|
|
22723
|
+
super(src2.status, src2.error, src2.message);
|
|
22712
22724
|
}
|
|
22713
22725
|
};
|
|
22714
22726
|
var IncompatibleDidDocError = class extends XRPCError {
|
|
22715
22727
|
constructor(src2) {
|
|
22716
|
-
super(src2.status, src2.error, src2.message
|
|
22728
|
+
super(src2.status, src2.error, src2.message);
|
|
22717
22729
|
}
|
|
22718
22730
|
};
|
|
22719
22731
|
function toKnownErr32(e) {
|
|
@@ -22746,7 +22758,7 @@ __export(createAppPassword_exports, {
|
|
|
22746
22758
|
});
|
|
22747
22759
|
var AccountTakedownError = class extends XRPCError {
|
|
22748
22760
|
constructor(src2) {
|
|
22749
|
-
super(src2.status, src2.error, src2.message
|
|
22761
|
+
super(src2.status, src2.error, src2.message);
|
|
22750
22762
|
}
|
|
22751
22763
|
};
|
|
22752
22764
|
function toKnownErr33(e) {
|
|
@@ -22807,7 +22819,7 @@ __export(createSession_exports, {
|
|
|
22807
22819
|
});
|
|
22808
22820
|
var AccountTakedownError2 = class extends XRPCError {
|
|
22809
22821
|
constructor(src2) {
|
|
22810
|
-
super(src2.status, src2.error, src2.message
|
|
22822
|
+
super(src2.status, src2.error, src2.message);
|
|
22811
22823
|
}
|
|
22812
22824
|
};
|
|
22813
22825
|
function toKnownErr36(e) {
|
|
@@ -22827,12 +22839,12 @@ __export(deleteAccount_exports, {
|
|
|
22827
22839
|
});
|
|
22828
22840
|
var ExpiredTokenError = class extends XRPCError {
|
|
22829
22841
|
constructor(src2) {
|
|
22830
|
-
super(src2.status, src2.error, src2.message
|
|
22842
|
+
super(src2.status, src2.error, src2.message);
|
|
22831
22843
|
}
|
|
22832
22844
|
};
|
|
22833
22845
|
var InvalidTokenError = class extends XRPCError {
|
|
22834
22846
|
constructor(src2) {
|
|
22835
|
-
super(src2.status, src2.error, src2.message
|
|
22847
|
+
super(src2.status, src2.error, src2.message);
|
|
22836
22848
|
}
|
|
22837
22849
|
};
|
|
22838
22850
|
function toKnownErr37(e) {
|
|
@@ -22883,7 +22895,7 @@ __export(getAccountInviteCodes_exports, {
|
|
|
22883
22895
|
});
|
|
22884
22896
|
var DuplicateCreateError = class extends XRPCError {
|
|
22885
22897
|
constructor(src2) {
|
|
22886
|
-
super(src2.status, src2.error, src2.message
|
|
22898
|
+
super(src2.status, src2.error, src2.message);
|
|
22887
22899
|
}
|
|
22888
22900
|
};
|
|
22889
22901
|
function toKnownErr40(e) {
|
|
@@ -22915,7 +22927,7 @@ __export(listAppPasswords_exports, {
|
|
|
22915
22927
|
});
|
|
22916
22928
|
var AccountTakedownError3 = class extends XRPCError {
|
|
22917
22929
|
constructor(src2) {
|
|
22918
|
-
super(src2.status, src2.error, src2.message
|
|
22930
|
+
super(src2.status, src2.error, src2.message);
|
|
22919
22931
|
}
|
|
22920
22932
|
};
|
|
22921
22933
|
function toKnownErr42(e) {
|
|
@@ -22940,7 +22952,7 @@ __export(refreshSession_exports, {
|
|
|
22940
22952
|
});
|
|
22941
22953
|
var AccountTakedownError4 = class extends XRPCError {
|
|
22942
22954
|
constructor(src2) {
|
|
22943
|
-
super(src2.status, src2.error, src2.message
|
|
22955
|
+
super(src2.status, src2.error, src2.message);
|
|
22944
22956
|
}
|
|
22945
22957
|
};
|
|
22946
22958
|
function toKnownErr43(e) {
|
|
@@ -22982,12 +22994,12 @@ __export(resetPassword_exports, {
|
|
|
22982
22994
|
});
|
|
22983
22995
|
var ExpiredTokenError2 = class extends XRPCError {
|
|
22984
22996
|
constructor(src2) {
|
|
22985
|
-
super(src2.status, src2.error, src2.message
|
|
22997
|
+
super(src2.status, src2.error, src2.message);
|
|
22986
22998
|
}
|
|
22987
22999
|
};
|
|
22988
23000
|
var InvalidTokenError2 = class extends XRPCError {
|
|
22989
23001
|
constructor(src2) {
|
|
22990
|
-
super(src2.status, src2.error, src2.message
|
|
23002
|
+
super(src2.status, src2.error, src2.message);
|
|
22991
23003
|
}
|
|
22992
23004
|
};
|
|
22993
23005
|
function toKnownErr46(e) {
|
|
@@ -23063,7 +23075,7 @@ __export(getHead_exports, {
|
|
|
23063
23075
|
});
|
|
23064
23076
|
var HeadNotFoundError = class extends XRPCError {
|
|
23065
23077
|
constructor(src2) {
|
|
23066
|
-
super(src2.status, src2.error, src2.message
|
|
23078
|
+
super(src2.status, src2.error, src2.message);
|
|
23067
23079
|
}
|
|
23068
23080
|
};
|
|
23069
23081
|
function toKnownErr52(e) {
|
|
@@ -23272,12 +23284,12 @@ __export(getAuthorFeed_exports, {
|
|
|
23272
23284
|
});
|
|
23273
23285
|
var BlockedActorError = class extends XRPCError {
|
|
23274
23286
|
constructor(src2) {
|
|
23275
|
-
super(src2.status, src2.error, src2.message
|
|
23287
|
+
super(src2.status, src2.error, src2.message);
|
|
23276
23288
|
}
|
|
23277
23289
|
};
|
|
23278
23290
|
var BlockedByActorError = class extends XRPCError {
|
|
23279
23291
|
constructor(src2) {
|
|
23280
|
-
super(src2.status, src2.error, src2.message
|
|
23292
|
+
super(src2.status, src2.error, src2.message);
|
|
23281
23293
|
}
|
|
23282
23294
|
};
|
|
23283
23295
|
function toKnownErr68(e) {
|
|
@@ -23298,7 +23310,7 @@ __export(getFeed_exports, {
|
|
|
23298
23310
|
});
|
|
23299
23311
|
var UnknownFeedError = class extends XRPCError {
|
|
23300
23312
|
constructor(src2) {
|
|
23301
|
-
super(src2.status, src2.error, src2.message
|
|
23313
|
+
super(src2.status, src2.error, src2.message);
|
|
23302
23314
|
}
|
|
23303
23315
|
};
|
|
23304
23316
|
function toKnownErr69(e) {
|
|
@@ -23339,7 +23351,7 @@ __export(getFeedSkeleton_exports, {
|
|
|
23339
23351
|
});
|
|
23340
23352
|
var UnknownFeedError2 = class extends XRPCError {
|
|
23341
23353
|
constructor(src2) {
|
|
23342
|
-
super(src2.status, src2.error, src2.message
|
|
23354
|
+
super(src2.status, src2.error, src2.message);
|
|
23343
23355
|
}
|
|
23344
23356
|
};
|
|
23345
23357
|
function toKnownErr72(e) {
|
|
@@ -23377,7 +23389,7 @@ __export(getPostThread_exports, {
|
|
|
23377
23389
|
});
|
|
23378
23390
|
var NotFoundError = class extends XRPCError {
|
|
23379
23391
|
constructor(src2) {
|
|
23380
|
-
super(src2.status, src2.error, src2.message
|
|
23392
|
+
super(src2.status, src2.error, src2.message);
|
|
23381
23393
|
}
|
|
23382
23394
|
};
|
|
23383
23395
|
function toKnownErr74(e) {
|
|
@@ -23627,7 +23639,7 @@ __export(getTimelineSkeleton_exports, {
|
|
|
23627
23639
|
});
|
|
23628
23640
|
var UnknownFeedError3 = class extends XRPCError {
|
|
23629
23641
|
constructor(src2) {
|
|
23630
|
-
super(src2.status, src2.error, src2.message
|
|
23642
|
+
super(src2.status, src2.error, src2.message);
|
|
23631
23643
|
}
|
|
23632
23644
|
};
|
|
23633
23645
|
function toKnownErr95(e) {
|
|
@@ -28231,6 +28243,15 @@ var ModerationCauseAccumulator = class {
|
|
|
28231
28243
|
});
|
|
28232
28244
|
}
|
|
28233
28245
|
}
|
|
28246
|
+
addBlockOther(blockOther) {
|
|
28247
|
+
if (blockOther) {
|
|
28248
|
+
this.causes.push({
|
|
28249
|
+
type: "block-other",
|
|
28250
|
+
source: { type: "user" },
|
|
28251
|
+
priority: 4
|
|
28252
|
+
});
|
|
28253
|
+
}
|
|
28254
|
+
}
|
|
28234
28255
|
addLabel(label, opts) {
|
|
28235
28256
|
const labelDef = LABELS[label.val];
|
|
28236
28257
|
if (!labelDef) {
|
|
@@ -28299,7 +28320,7 @@ var ModerationCauseAccumulator = class {
|
|
|
28299
28320
|
this.causes.sort((a, b) => a.priority - b.priority);
|
|
28300
28321
|
mod.cause = this.causes[0];
|
|
28301
28322
|
mod.additionalCauses = this.causes.slice(1);
|
|
28302
|
-
if (mod.cause.type === "blocking" || mod.cause.type === "blocked-by") {
|
|
28323
|
+
if (mod.cause.type === "blocking" || mod.cause.type === "blocked-by" || mod.cause.type === "block-other") {
|
|
28303
28324
|
mod.filter = true;
|
|
28304
28325
|
mod.blur = true;
|
|
28305
28326
|
mod.noOverride = true;
|
|
@@ -28400,6 +28421,15 @@ function decideQuotedPost(subject, opts) {
|
|
|
28400
28421
|
acc.addLabel(label, opts);
|
|
28401
28422
|
}
|
|
28402
28423
|
}
|
|
28424
|
+
} else if (record_exports.isViewBlocked(subject.record)) {
|
|
28425
|
+
acc.setDid(subject.record.author.did);
|
|
28426
|
+
if (subject.record.author.viewer?.blocking) {
|
|
28427
|
+
acc.addBlocking(subject.record.author.viewer?.blocking);
|
|
28428
|
+
} else if (subject.record.author.viewer?.blockedBy) {
|
|
28429
|
+
acc.addBlockedBy(subject.record.author.viewer?.blockedBy);
|
|
28430
|
+
} else {
|
|
28431
|
+
acc.addBlockOther(true);
|
|
28432
|
+
}
|
|
28403
28433
|
}
|
|
28404
28434
|
return acc.finalizeDecision(opts);
|
|
28405
28435
|
}
|
|
@@ -28418,6 +28448,15 @@ function decideQuotedPostWithMedia(subject, opts) {
|
|
|
28418
28448
|
acc.addLabel(label, opts);
|
|
28419
28449
|
}
|
|
28420
28450
|
}
|
|
28451
|
+
} else if (record_exports.isViewBlocked(subject.record.record)) {
|
|
28452
|
+
acc.setDid(subject.record.record.author.did);
|
|
28453
|
+
if (subject.record.record.author.viewer?.blocking) {
|
|
28454
|
+
acc.addBlocking(subject.record.record.author.viewer?.blocking);
|
|
28455
|
+
} else if (subject.record.record.author.viewer?.blockedBy) {
|
|
28456
|
+
acc.addBlockedBy(subject.record.record.author.viewer?.blockedBy);
|
|
28457
|
+
} else {
|
|
28458
|
+
acc.addBlockOther(true);
|
|
28459
|
+
}
|
|
28421
28460
|
}
|
|
28422
28461
|
return acc.finalizeDecision(opts);
|
|
28423
28462
|
}
|
|
@@ -28488,14 +28527,10 @@ function isModerationDecisionNoop(decision, { ignoreFilter } = { ignoreFilter: f
|
|
|
28488
28527
|
return true;
|
|
28489
28528
|
}
|
|
28490
28529
|
function isQuotedPost(embed) {
|
|
28491
|
-
return Boolean(
|
|
28492
|
-
embed && record_exports.isView(embed) && record_exports.isViewRecord(embed.record) && post_exports.isRecord(embed.record.value) && post_exports.validateRecord(embed.record.value).success
|
|
28493
|
-
);
|
|
28530
|
+
return Boolean(embed && record_exports.isView(embed));
|
|
28494
28531
|
}
|
|
28495
28532
|
function isQuotedPostWithMedia(embed) {
|
|
28496
|
-
return Boolean(
|
|
28497
|
-
embed && recordWithMedia_exports.isView(embed) && record_exports.isViewRecord(embed.record.record) && post_exports.isRecord(embed.record.record.value) && post_exports.validateRecord(embed.record.record.value).success
|
|
28498
|
-
);
|
|
28533
|
+
return Boolean(embed && recordWithMedia_exports.isView(embed));
|
|
28499
28534
|
}
|
|
28500
28535
|
function toModerationUI(decision) {
|
|
28501
28536
|
return {
|