mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-07 19:40:54 +01:00
fix bugs
This commit is contained in:
parent
ea11c19caf
commit
c4582e8167
3 changed files with 6 additions and 2 deletions
|
@ -295,6 +295,10 @@ export const handleStatus = async (
|
|||
const photos = status.media?.photos || [];
|
||||
|
||||
photos.forEach(photo => {
|
||||
/* Override the card type */
|
||||
status.embed_card = 'summary_large_image';
|
||||
console.log('set embed_card to summary_large_image')
|
||||
|
||||
const instructions = renderPhoto(
|
||||
{
|
||||
status: status,
|
||||
|
|
|
@ -30,7 +30,7 @@ const Experiments: { [key in Experiment]: ExperimentConfig } = {
|
|||
[Experiment.DISCORD_NATIVE_MULTI_IMAGE]: {
|
||||
name: 'Discord native multi-image',
|
||||
description: 'Use Discord native multi-image',
|
||||
percentage: 0
|
||||
percentage: 1
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ export const statusRequest = async (c: Context) => {
|
|||
console.log('Gallery embed request');
|
||||
flags.gallery = true;
|
||||
} else if (Constants.NATIVE_MULTI_IMAGE_DOMAINS.includes(url.hostname)) {
|
||||
console.log('Force mosaic request');
|
||||
console.log('Force native multi-image');
|
||||
flags.nativeMultiImage = true;
|
||||
} else if (prefix === 'dl' || prefix === 'dir') {
|
||||
console.log('Direct media request by path prefix');
|
||||
|
|
Loading…
Add table
Reference in a new issue