Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use a different image in previews #13488

Merged
merged 3 commits into from
May 11, 2020
Merged

Conversation

foldleft
Copy link
Contributor

@foldleft foldleft commented May 4, 2020

fixes: #12014

replaces: #13461

@foldleft foldleft requested a review from a team May 4, 2020 10:43
@@ -6,7 +6,7 @@ const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const webpack = require("webpack");

let og_image_url = process.env.RIOT_OG_IMAGE_URL;
if (!og_image_url) og_image_url = 'https://riot.im/app/themes/riot/img/logos/riot-im-logo-black-text.png';
if (!og_image_url) og_image_url = 'https://about.riot.im/images/opengraph.png';
Copy link
Collaborator

@jryans jryans May 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it's better to keep the app self-contained by copying this asset into the logos folder? If we redesign about.riot.im some day, we're likely to forget we've depended on this path.

@foldleft foldleft requested a review from jryans May 7, 2020 09:39
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, looks good to me! 😁

@foldleft foldleft merged commit 72af5c1 into develop May 11, 2020
@foldleft foldleft deleted the foldleft/12014-big-previews-2 branch May 11, 2020 10:38
@ara4n
Copy link
Member

ara4n commented May 11, 2020

worth noting https://riot.im/app/themes/riot/img/logos/opengraph.png is 404ing

@jryans
Copy link
Collaborator

jryans commented May 11, 2020

worth noting https://riot.im/app/themes/riot/img/logos/opengraph.png is 404ing

Right, it normally wouldn't have appeared until release. I went ahead and manually copied it from develop to app, so should be good now.

@ara4n
Copy link
Member

ara4n commented May 11, 2020

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

URL previews in Slack for Riot deeplinks are horribly large
3 participants