@fabriktor/fx 0.0.58 → 0.0.61
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/src/feed/feed.js
CHANGED
|
@@ -37,7 +37,7 @@ const msgFeedReplyMissing = "No reply exists for this post.";
|
|
|
37
37
|
const msgFeedReferenceAlreadyExists = "A reference already exists for this post.";
|
|
38
38
|
const msgFeedReferenceMissing = "No reference exists for this post.";
|
|
39
39
|
const msgFeedObjectsMissing = "Storage download did not return any feed objects.";
|
|
40
|
-
const msgFeedObjectURLMissing = "Storage object does not contain a
|
|
40
|
+
const msgFeedObjectURLMissing = "Storage object does not contain a public URL.";
|
|
41
41
|
const msgFeedObjectMIMEMissing = "Storage object does not contain a MIME prefix.";
|
|
42
42
|
const msgFeedObjectCaptionMissing = "Storage object does not contain a caption embedding.";
|
|
43
43
|
export const FeedAction = {
|
|
@@ -406,6 +406,7 @@ export class FeedFX {
|
|
|
406
406
|
user_id: opts.user_id,
|
|
407
407
|
uploader_id: opts.uploader_id,
|
|
408
408
|
full_quality: opts.full_quality,
|
|
409
|
+
public_url: true,
|
|
409
410
|
files: opts.files,
|
|
410
411
|
save_to_personal_box: opts.save_to_personal_box,
|
|
411
412
|
});
|
|
@@ -429,7 +430,6 @@ export class FeedFX {
|
|
|
429
430
|
stored = await this.storage_fx.downloadObjects({
|
|
430
431
|
col: ColStorageFeed,
|
|
431
432
|
owner_id: post_id,
|
|
432
|
-
expire: false,
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
catch (err) {
|
|
@@ -689,8 +689,8 @@ function feedObjects(objects) {
|
|
|
689
689
|
}
|
|
690
690
|
const out = [];
|
|
691
691
|
for (const object of objects) {
|
|
692
|
-
const
|
|
693
|
-
if (
|
|
692
|
+
const public_url = resolvedValue(object.public_url);
|
|
693
|
+
if (public_url === undefined) {
|
|
694
694
|
throw errResolveFailed({
|
|
695
695
|
resource: resourceFeedObject,
|
|
696
696
|
msg: msgFeedObjectURLMissing,
|
|
@@ -711,7 +711,7 @@ function feedObjects(objects) {
|
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
out.push({
|
|
714
|
-
|
|
714
|
+
public_url,
|
|
715
715
|
mime_prefix,
|
|
716
716
|
embedding,
|
|
717
717
|
});
|
|
@@ -43,6 +43,7 @@ export class StorageFX {
|
|
|
43
43
|
owner_id,
|
|
44
44
|
uploader_id: opts.uploader_id,
|
|
45
45
|
full_quality: opts.full_quality,
|
|
46
|
+
public_url: opts.public_url,
|
|
46
47
|
files: opts.files,
|
|
47
48
|
});
|
|
48
49
|
return uploadResult(out);
|
|
@@ -54,6 +55,7 @@ export class StorageFX {
|
|
|
54
55
|
owner_id: opts.owner_id,
|
|
55
56
|
uploader_id: opts.uploader_id,
|
|
56
57
|
full_quality: opts.full_quality,
|
|
58
|
+
public_url: opts.public_url,
|
|
57
59
|
files: opts.files,
|
|
58
60
|
});
|
|
59
61
|
if (personal_box_user_id === undefined) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabriktor/fx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.61",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"typescript": "^6.0.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@fabriktor/client": "0.0.
|
|
21
|
-
"@fabriktor/schema": "0.0.
|
|
20
|
+
"@fabriktor/client": "0.0.57",
|
|
21
|
+
"@fabriktor/schema": "0.0.38"
|
|
22
22
|
}
|
|
23
23
|
}
|