Improve post & events cards, homepage and my events page

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-11-02 19:47:54 +01:00
parent 39f40a86f7
commit 4923c52f3b
51 changed files with 2057 additions and 1092 deletions

View File

@@ -259,7 +259,7 @@ export function toEditJSON(event: IEditableEvent): IEventEditJSON {
}
export function organizer(event: IEvent): IActor | null {
if (event.attributedTo) {
if (event.attributedTo?.id) {
return event.attributedTo;
}
if (event.organizerActor) {