Software /
code /
prosody-modules
Diff
mod_invites_page/mod_invites_page.lua @ 4116:05d0a249326a
mod_invites_page: Add Link header for URI with rel=alternate
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 14 Sep 2020 12:47:34 +0100 |
parent | 4107:798f284717e7 |
child | 4129:ca099bd28bf5 |
line wrap: on
line diff
--- a/mod_invites_page/mod_invites_page.lua Sun Sep 13 11:05:19 2020 +0100 +++ b/mod_invites_page/mod_invites_page.lua Mon Sep 14 12:47:34 2020 +0100 @@ -98,6 +98,8 @@ template_vars.apps = render_app_urls(site_apps, template_vars); local invite_page = render_html_template(invite_page_template, template_vars); + + event.response.headers["Link"] = ([[<%s>; rel="alternate"]]):format(template_vars.uri); return invite_page; end