Compare commits
1 Commits
42228e0a23
...
cc655ffcc3
| Author | SHA1 | Date | |
|---|---|---|---|
| cc655ffcc3 |
6
dist/fabric/src/inbound.js
vendored
6
dist/fabric/src/inbound.js
vendored
@@ -173,14 +173,16 @@ export class FabricInbound {
|
|||||||
Timestamp: m.createdAt ? Date.parse(m.createdAt) : Date.now(),
|
Timestamp: m.createdAt ? Date.parse(m.createdAt) : Date.now(),
|
||||||
OriginatingChannel: 'fabric',
|
OriginatingChannel: 'fabric',
|
||||||
OriginatingTo: `fabric:${channelId}`,
|
OriginatingTo: `fabric:${channelId}`,
|
||||||
|
// Provide ONLY local paths. The guild file URL is on a private host
|
||||||
|
// (e.g. localhost); openclaw's SSRF guard blocks re-fetching it, so
|
||||||
|
// passing MediaUrls is both redundant (we already downloaded the
|
||||||
|
// bytes) and noisy. Local MediaPaths is the reliable delivery.
|
||||||
...(media.paths.length
|
...(media.paths.length
|
||||||
? {
|
? {
|
||||||
MediaPaths: media.paths,
|
MediaPaths: media.paths,
|
||||||
MediaTypes: media.types,
|
MediaTypes: media.types,
|
||||||
MediaUrls: media.urls,
|
|
||||||
MediaPath: media.paths[0],
|
MediaPath: media.paths[0],
|
||||||
MediaType: media.types[0],
|
MediaType: media.types[0],
|
||||||
MediaUrl: media.urls[0],
|
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -212,14 +212,16 @@ export class FabricInbound {
|
|||||||
Timestamp: m.createdAt ? Date.parse(m.createdAt) : Date.now(),
|
Timestamp: m.createdAt ? Date.parse(m.createdAt) : Date.now(),
|
||||||
OriginatingChannel: 'fabric',
|
OriginatingChannel: 'fabric',
|
||||||
OriginatingTo: `fabric:${channelId}`,
|
OriginatingTo: `fabric:${channelId}`,
|
||||||
|
// Provide ONLY local paths. The guild file URL is on a private host
|
||||||
|
// (e.g. localhost); openclaw's SSRF guard blocks re-fetching it, so
|
||||||
|
// passing MediaUrls is both redundant (we already downloaded the
|
||||||
|
// bytes) and noisy. Local MediaPaths is the reliable delivery.
|
||||||
...(media.paths.length
|
...(media.paths.length
|
||||||
? {
|
? {
|
||||||
MediaPaths: media.paths,
|
MediaPaths: media.paths,
|
||||||
MediaTypes: media.types,
|
MediaTypes: media.types,
|
||||||
MediaUrls: media.urls,
|
|
||||||
MediaPath: media.paths[0],
|
MediaPath: media.paths[0],
|
||||||
MediaType: media.types[0],
|
MediaType: media.types[0],
|
||||||
MediaUrl: media.urls[0],
|
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user