Hi, is there a way to turn off previews of app.gra...
# how-do-i
l
Hi, is there a way to turn off previews of app.graphite.dev URLs in Slack messages?
👀 1
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
g
that would be great indeed
p
hey Lee and George, the unfurl/preview of links is done and controlled by Slack. I believe it can be disabled for all links in Slack settings. For Graphite URLs specifically, if you add the Graphite Slack app to your Slack workspace then the app will be able to replace the standard unfurl/preview with a richer preview
l
According to this: https://slack.com/intl/en-gb/help/articles/204399343-Share-links-and-set-preview-preferences#turn-off-link-previews > Previews for some third-party app links won’t be disabled when the options above are unticked. Which is what I find. Despite unticking the boxes next to Show images and files from linked websites and Show text previews of linked websites, I still see previews of app.graphite.dev links since this is handled by the Graphite Slack integration as stated in your link above: > Show previews of app.graphite.dev URLs in messages There are not settings to change that, that I can see
g
or you could not return <meta name="twitter:image">, and other OpenGraph meta tags on https://app.graphite.com/github/pr/.....
like that 🙂
p
Right, the Graphite Slack app is intended to show the rich previews and this enables being able to see diffs, comment and approve via the app's notifications
l
Yeah, and that is really awesome. Is there any way to disable that?
p
no, those app-specific functions and permissions aren't configurable unfortunately. They get approved at the time the app is installed to the workspace and end-users can't modify them
l
Okay thanks
g
I see, I do have the slack app installed. But whenever I share the Graphite PR url on DMs, I get the generic image/description like above
p
Ah in that case you'll need to re-authorize the Graphite Slack app to use the
<http://graphite.com|graphite.com>
domain. To do that, you can remove and re-add your Slack workspace in your Graphite Notifications settings here. That will open a pop-up window from Slack which prompts you to approve the Graphite Slack app's latest permissions. See more info in our docs here.
g
beautiful, worked! 🙂
tks
m
hey @Gareth Brickman, I actualy have the opposite problem - no link preview for app.graphite.com domain is being shown at all (but i get the rich unfurl with the old dev domain), I have tried removing & adding back the slack integration at app.graphite.com/settings/notifications and was prompted to install / authorize the bot, but that didn't do the trick
there's this button but seems too destructive to push 🫥 (Sorry i know this is more like a using-slack-question)
p
hey Minqi, you should be able to remove the app with that button and then try re-adding it from in Graphite. The permissions the app will show should include the
<http://graphite.com|graphite.com>
domain.