Stop using metadata for sharing text

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-16 16:21:08 +02:00
parent 5c3592cc63
commit 08b4fb9b08
2 changed files with 1 additions and 19 deletions

View File

@@ -944,7 +944,6 @@ export default class Event extends EventMixin {
// @ts-ignore
.share({
title: this.event.title,
text: Event.textDescription,
url: this.event.url,
})
.then(() => console.log("Successful share"))
@@ -985,13 +984,6 @@ export default class Event extends EventMixin {
: this.event.beginsOn;
}
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);
}
get eventCapacityOK(): boolean {
if (this.event.draft) return true;
if (!this.event.options.maximumAttendeeCapacity) return true;