makes profiles public
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { Trail } from "./trail";
|
||||
import type { UserAnonymous } from "./user";
|
||||
|
||||
class SummitLog {
|
||||
id?: string;
|
||||
@@ -15,6 +16,7 @@ class SummitLog {
|
||||
expand: {
|
||||
gpx_data?: string;
|
||||
trails_via_summit_logs?: Trail[];
|
||||
author?: UserAnonymous
|
||||
}
|
||||
|
||||
constructor(date: string, params?: { id?: string, text?: string, distance?: number, elevation_loss?: number, elevation_gain?: number, duration?: number }) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { User } from "./user";
|
||||
import type { User, UserAnonymous } from "./user";
|
||||
|
||||
export class TrailShare {
|
||||
id?: string;
|
||||
@@ -6,7 +6,7 @@ export class TrailShare {
|
||||
trail: string;
|
||||
permission: "view" | "edit"
|
||||
expand?: {
|
||||
user: User
|
||||
user: UserAnonymous
|
||||
}
|
||||
|
||||
constructor(user: string, trail: string, permission: "view" | "edit") {
|
||||
|
||||
@@ -14,4 +14,5 @@ export type UserAnonymous = {
|
||||
id: string,
|
||||
username?: string,
|
||||
avatar?: string;
|
||||
created?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user