# Image hash code in description of forum topic shared on Facebook/Twitter

**URL:** <https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382>\
**Category:** Feature\
**Created:** [11월 19, 2017, 11:17오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382 "2017-11-19T23:17:39Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [11월 19, 2017, 11:17오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/1 "2017-11-19T23:17:39Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/5/1/51db7f66a4e0e90210611b93a128c486793264cc.jpg)

Image hash codes are appearing in `og:description` and `twitter:description` tags.

```plaintext
<meta property="og:description" content="[58C86A72-CC43-4B36-A8C7-2F360BBA228E] One Tree Hill, Honor Oak 🎉 Welcome to Lewisham ..." />
<meta name="twitter:description" content="[58C86A72-CC43-4B36-A8C7-2F360BBA228E] One Tree Hill, Honor Oak 🎉 Welcome to Lewisham ..." />

```

It’s rare, if ever, that the image caption contains any useful content - most of the time they are lengthy hash codes. If these captions were stripped from the `og:` tags it would help my social media shares look clearer (I rely on shares to bring people to my forum - they’re an important part of my branding).

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [11월 20, 2017, 12:22오전 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/2 "2017-11-20T00:22:35Z")

</div>

What is the “raw” content of the actual post?

---

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [11월 20, 2017, 7:59오전 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/3 "2017-11-20T07:59:42Z")

</div>

> [@sam](#):
>
> What is the “raw” content of the actual post?

```plaintext
![58C86A72-CC43-4B36-A8C7-2F360BBA228E|600x330](upload://5p26A2jfTK4qGLBb0ghom3htfTv.jpeg)
<sub>One Tree Hill, Honor Oak</sub>

## :tada: Welcome to Lewisham

- The highest number of [parks and green spaces](http://www.lewisham.gov.uk/inmyarea/openspaces/Pages/default.aspx) of any London borough. 
- London's largest free fireworks [at Blackheath](http://www.lewisham.gov.uk/inmyarea/events/whats-on/fireworks/Pages/default.aspx) each year.

...

```

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [11월 20, 2017, 8:01오전 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/4 "2017-11-20T08:01:55Z")

</div>

> [@ChrisBeach](#):
>
> ![58C86A72-CC43-4B36-A8C7-2F360BBA228E|600x330]

hmmm but why not call the image something sane like: `image` instead of `58C86A72-CC43-4B36-A8C7-2F360BBA228E` ?

when I just pasted an image in I got!

```plaintext
![image|469x439](upload://1f0cKSsDiZiQCRtV1RC08N1OIeA.png)

```

---

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [11월 20, 2017, 8:04오전 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/5 "2017-11-20T08:04:52Z")

</div>

> [@sam](#):
>
> why not call the image something sane like: image instead of 58C86A72-CC43-4B36-A8C7-2F360BBA228E ?

I uploaded the image on my phone. I wouldn’t expect any member of my forum to a) know how to or b) care enough to edit the following:

```plaintext
![58C86A72-CC43-4B36-A8C7-2F360BBA228E|600x330](upload://5p26A2jfTK4qGLBb0ghom3htfTv.jpeg)

```

…into

```plaintext
![image](upload://5p26A2jfTK4qGLBb0ghom3htfTv.jpeg)

```

What’s more, I wouldn’t want [image] appearing in my social shares, either. Or anything that appears in square brackets.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [11월 20, 2017, 8:07오전 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/7 "2017-11-20T08:07:09Z")

</div>

Let me upload an image from my phone

 ![3BD97A0E-AAC6-4503-8BFC-C5A2579F54A9](https://global.discourse-cdn.com/meta/original/3X/b/2/b2cb7e7e5b5fd3b5434ec023d794cc2da1928b4a.jpeg)

Yep I see the guid in there @sam

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [11월 20, 2017, 8:09오전 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/8 "2017-11-20T08:09:30Z")

</div>

Well maybe we should improve that specifically for giant guids, add better handling for file names uploaded from mobile

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [11월 21, 2017, 8:57오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/10 "2017-11-21T20:57:30Z")

</div>

Yes we should handle this guid case for mobile, @gerhard can you add this to your list? I assume all iOS devices will benefit from better behavior here.

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [11월 27, 2017, 2:31오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/11 "2017-11-27T14:31:36Z")

</div>

Should we remove the `[image]` tags from the excerpt used in `og:description` and `twitter:description` or is replacing the GUID in images uploaded from iOS enough?

Showing the alt text of images in those descriptions feels like a bad idea most of the time, but I guess there are some usecases where it makes sense to include them.

---

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [11월 27, 2017, 3:18오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/12 "2017-11-27T15:18:33Z")

</div>

I’d like for the [image] tags to be removed from excerpts, yes (others may, of course, disagree)

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [11월 28, 2017, 12:02오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/13 "2017-11-28T12:02:18Z")

</div>

OK, the first part is now merged: [FEATURE: replace GUID in image name uploaded from iOS (#5370) · discourse/discourse@41e70c4 · GitHub](https://github.com/discourse/discourse/commit/41e70c410c39f5b29c9e67481a4251aeab891b1e)

I’m waiting on feedback for  
[https://github.com/discourse/discourse/pull/5377](https://github.com/discourse/discourse/pull/5377)

@codinghorror Do we want to try this out?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [11월 28, 2017, 7:55오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/14 "2017-11-28T19:55:18Z")

</div>

Probably fine, go for it and see what people think.

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [11월 29, 2017, 8:03오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/15 "2017-11-29T20:03:34Z")

</div>

@ChrisBeach There shouldn’t be any image tags in the descriptions anymore when you share a topic on Twitter and Facebook. All you need to do is update to latest for this to work.

---

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [11월 29, 2017, 8:44오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/16 "2017-11-29T20:44:49Z")

</div>

Many thanks @gerhard. Appreciate the change and the notification.

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [12월 1, 2017, 8:45오후 UTC](https://meta.discourse.org/t/image-hash-code-in-description-of-forum-topic-shared-on-facebook-twitter/74382/17 "2017-12-01T20:45:10Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
