Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
gabboman committed Mar 9, 2025
1 parent ee7e7be commit 0f409de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/app/services/media.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class MediaService {
async getLinkPreview(link: string): Promise<any> {
try {
return await firstValueFrom(
this.http.get<any>(`${EnvironmentService.environment.baseUrl}/linkPreview?url=${link}`)
this.http.get<any>(`${EnvironmentService.environment.baseUrl}/linkPreview/?url=${encodeURIComponent(link)}`)
)
} catch (error) {
return {}
Expand Down

0 comments on commit 0f409de

Please sign in to comment.