# Improve topic invites

**URL:** https://meta.discourse.org/t/improve-topic-invites/17184
**Category:** Feature
**Tags:** rfc, spec
**Created:** [July 3, 2014, 11:26pm UTC](https://meta.discourse.org/t/improve-topic-invites/17184 "2014-07-03T23:26:53Z")
**Posts on this page:** 8
**Page:** 1

<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: [July 3, 2014, 11:26pm UTC](https://meta.discourse.org/t/improve-topic-invites/17184/1 "2014-07-03T23:26:54Z")

</div>

Right now when you send an invite via the button at the bottom of a topic (requires trust level 2 or staff), the recipient gets this email:

Title: `[Discourse Meta] codinghorror invited you to join a discussion`

> codinghorror invited you to a discussion
> 
> > Merging authentication with our website?
> 
> at
> 
> > **Discourse Meta**
> > 
> > Discussion about the next-generation open source Discourse forum software
> 
> If you’re interested, click the link below:
> 
> [Discourse Meta](https://meta.discourse.org/invites/guid_string)
> 
> This invitation is from a trusted user, so you can reply to the discussion immediately.

I suggest we make the following improvements to the email:

Title `codinghorror invited you to "Merging authentication with our website?" on meta.discourse.org`

> Jeff Atwood (codinghorror) invited you to a discussion
> 
> > **Merging authentication with our website?**
> > 
> > Is it possible to to merge Discourse user authentication with that of our website, so its a single login? any documentation on this?
> 
> at
> 
> > Discourse Meta – Discussion about the next-generation open source Discourse forum software
> 
> If you’re interested, click the link below:
> 
> [Discourse Meta](https://meta.discourse.org/invites/guid_string)
> 
> This invitation is from a trusted user, so you can reply to the discussion immediately.

We only want the first paragraph of the topic in the invite. The email digest code path already contains code to extract the first paragraph of content plus or minus a bit, written by @eviltrout. I suggest we use that.

Also, make sure including the name respects the “don’t show full usernames” site setting which is _off_ by default, but can be on for some Discourse instances that are particularly privacy conscious.

---

<div class="post-metadata">

### Author: ![Lid](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@Lid](https://meta.discourse.org/u/Lid)
#### Post date: [July 4, 2014, 12:03am UTC](https://meta.discourse.org/t/improve-topic-invites/17184/2 "2014-07-04T00:03:22Z")

</div>

Having the topic title and then a gist makes a lot of sense  
bold for the subject clearly shows that this is the topic of the conversation

Since I am still not level 2 my recommendations are based on what I can see here:  
The 2nd part of the invite can probably also get improved. to better communicate the origination of the topic.

I am not sure if invites are only targeting guests (by email) or also for existing users.  
Having a more familiar look of the forum tag can further improve engagement  
 ![](https://global.discourse-cdn.com/meta/original/3X/f/7/f7d59e0425b8024fb48a4f7ad0217c27f7ba9f96.png)

Probably also to get rid of the quote format on the forum description as it is not an actual message.

---

<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: [July 4, 2014, 12:05am UTC](https://meta.discourse.org/t/improve-topic-invites/17184/3 "2014-07-04T00:05:10Z")

</div>

> [@Lid](#):
>
> invites are only targeting guests (by email) or also for existing users

Invites are only for onboarding of brand new users at this time. The input box is for an _email address_.

---

<div class="post-metadata">

### Author: ![Lid](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@Lid](https://meta.discourse.org/u/Lid)
#### Post date: [July 4, 2014, 12:13am UTC](https://meta.discourse.org/t/improve-topic-invites/17184/4 "2014-07-04T00:13:39Z")

</div>

In that case my tag recommendation does not have much added value.

is there an option for the person who invite to write a custom message in addition?  
or that an invitation for hidden spam

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [July 9, 2014, 3:01pm UTC](https://meta.discourse.org/t/improve-topic-invites/17184/5 "2014-07-09T15:01:12Z")

</div>

PR sent for this feature:

> <https://github.com/discourse/discourse/pull/2521>
>
> Include topic context in topic invite mail. \[Specified here\](https://meta.discou…rse.org/t/improve-topic-invites/17184).

---

<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: [July 9, 2014, 7:55pm UTC](https://meta.discourse.org/t/improve-topic-invites/17184/6 "2014-07-09T19:55:26Z")

</div>

This looks good! One minor fix, the title of the invite is not correct – should be

`codinghorror invited you to "Merging authentication with our website?" on meta.discourse.org`

but is instead

`[Discourse Meta] codinghorror invited you to join a discussion`

I edited a little, but there’s a new string substitution needed for the title, and the current string (site title) is not the quite the same as the URL string.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [July 10, 2014, 4:37am UTC](https://meta.discourse.org/t/improve-topic-invites/17184/7 "2014-07-10T04:37:47Z")

</div>

Sorry, I overlooked that! Fixed now:

[https://github.com/discourse/discourse/pull/2523](https://github.com/discourse/discourse/pull/2523)

---

<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: [July 10, 2014, 5:04am UTC](https://meta.discourse.org/t/improve-topic-invites/17184/8 "2014-07-10T05:04:56Z")

</div>


