Stop using metadata for sharing text
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -67,10 +67,7 @@ export default class ShareEventModal extends Vue {
|
||||
}
|
||||
|
||||
get emailShareUrl(): string {
|
||||
return `mailto:?to=&body=${this.event.url}${encodeURIComponent(
|
||||
"\n\n"
|
||||
// @ts-ignore
|
||||
)}${ShareEventModal.textDescription}&subject=${this.event.title}`;
|
||||
return `mailto:?to=&body=${this.event.url}&subject=${this.event.title}`;
|
||||
}
|
||||
|
||||
get diasporaShareUrl(): string {
|
||||
@@ -78,13 +75,6 @@ export default class ShareEventModal extends Vue {
|
||||
this.event.title
|
||||
)}&url=${encodeURIComponent(this.event.url)}`;
|
||||
}
|
||||
|
||||
static get textDescription(): string {
|
||||
const meta = document.querySelector("meta[property='og:description']");
|
||||
if (!meta) return "";
|
||||
const desc = meta.getAttribute("content") || "";
|
||||
return desc.substring(0, 1000);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user