Store and serve local profile icons for user pages

Shown e.g. in browser tabs and as RSS icon
This commit is contained in:
2024-12-03 18:35:39 +01:00
parent 7f975f2dbb
commit f4d1ba897b
6 changed files with 69 additions and 17 deletions

View File

@@ -63,6 +63,14 @@ export default class Profile {
return `${config.base_url}/@${this.username}`;
}
get avatarImageUrl(): string {
if (magick) {
return `${config.base_url}/assets/g/img/p-${this.event.id}.png`;
} else {
return this.picture || "";
}
}
get ogImageUrl(): string {
if (magick) {
return `${config.base_url}/assets/g/img/og-p-${this.event.id}.png`;