FIX: include topic/PM link & unsubscribe link in email footer (PR #8194)

When existing users are invited to a topic or PM they are not seeing topic/PM link & unsubscribe link in email footer. This PR fixes that.

Message:

Topic:

GitHub

You’ve signed the CLA, techAPJ. Thank you! This pull request is ready for review.

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/adding-a-link-in-the-message-invitations/130369/6

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/adding-a-link-in-the-message-invitations/130369/6

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

It’s unfortunate that we need to reintroduce the invite.html.erb template for this. It’s another erb that we’ll need to figure out how to let users customize. Also, nothing about this template is specific to invite emails. I would rather use the notification.html.erb template for this case too. It’s an email to a user about a post, so it should be possible. Did you look at that option?

It’s another erb that we’ll need to figure out how to let users customize.

I see… I don’t think we necessarily need to add erb file to include topic/PM link. I updated the invite templates to add the link instead. https://github.com/discourse/discourse/commit/600233482f3bf499e7655a1596908eee32f8cbbb