cookywook
(Richard Cook)
December 20, 2019, 11:11am
1
When we share forum posts elsewhere, the open graph image defaults to the avatar of the poster, which doesn’t look great.
Is there a way to change it to something else by default?
I searched for other posts on this and only found this, which didn’t get answered:
If a user posts a link to a topic on social media or something like that often an image is loaded.
My discourse installation per default displays the autor profile picture of the last editor in this topic.
Is there any way to change this to the forum logo?
2 Likes
david
(David Taylor)
December 20, 2019, 11:20am
2
If you head to the “branding” tab of your site settings, you will find various places to upload logos. If you update the ‘large icon’, it will propagate to all the other sharing icons.
4 Likes
david
(David Taylor)
December 20, 2019, 11:41am
3
I just took a look at the code, and I guess you are talking about the case when you share a specific post URL. For example, if I share the link to this topic, it would look like (using the twitter card validator )
However, if I share the permalink to my reply, we get my profile picture:
I think in this case we should prioritise the default opengraph image over the avatar. What do you think @zogstrip ?
3 Likes
cookywook
(Richard Cook)
December 20, 2019, 11:51am
5
david:
I just took a look at the code, and I guess you are talking about the case when you share a specific post URL. For example, if I share the link to this topic, it would look like (using the twitter card validator )
I meant exactly this, correct!
3 Likes
zogstrip
(Régis Hanol)
December 20, 2019, 12:03pm
6
So this would be: first image in the post open graph image poster avatar?
I guess poster avatar will almost never show…
But I think having the open graph image makes more sense
3 Likes
david
(David Taylor)
December 20, 2019, 12:04pm
7
I was actually thinking of removing the post avatar entirely. Almost every site will have some kind of opengraph image set. I don’t think anyone really wants profile pictures showing up as link previews anyway:
https://github.com/discourse/discourse/pull/8605
3 Likes
david
(David Taylor)
December 20, 2019, 2:15pm
8
This change is now made. Links to replies will now fall back in the same way as links to the topic itself. So my reply above now looks like:
I’ve just deployed this change to your hosted site @cookywook - thanks for starting the discussion!
6 Likes
cookywook
(Richard Cook)
December 20, 2019, 2:30pm
9
Amazing, thanks for the hyper-speedy turnaround
3 Likes
cookywook
(Richard Cook)
December 20, 2019, 2:45pm
10
One more thing, sorry, do you know why it makes just a little image rather than the big one you’d get if you shared the whole thread?
1 Like
david
(David Taylor)
December 20, 2019, 2:46pm
11
Hmm not sure, do you have an example link? (feel free to PM if you’d rather not post it in public)
1 Like
david
(David Taylor)
Closed
December 23, 2019, 6:09pm
19
This topic was automatically closed after 3 days. New replies are no longer allowed.