diff --git a/web/src/lib/components/VersionAnnouncement.svelte b/web/src/lib/components/VersionAnnouncement.svelte index 138813735f..2123f2f523 100644 --- a/web/src/lib/components/VersionAnnouncement.svelte +++ b/web/src/lib/components/VersionAnnouncement.svelte @@ -1,7 +1,7 @@ rateAsset(null) }, ...[1, 2, 3, 4, 5].map((rating) => ({ diff --git a/web/src/lib/components/asset-viewer/activity-viewer.svelte b/web/src/lib/components/asset-viewer/activity-viewer.svelte index 0dc031a5e3..30271a45a9 100644 --- a/web/src/lib/components/asset-viewer/activity-viewer.svelte +++ b/web/src/lib/components/asset-viewer/activity-viewer.svelte @@ -5,13 +5,14 @@ import { timeBeforeShowLoadingSpinner } from '$lib/constants'; import { activityManager } from '$lib/managers/activity-manager.svelte'; import { assetViewerManager } from '$lib/managers/asset-viewer-manager.svelte'; + import { authManager } from '$lib/managers/auth-manager.svelte'; import { Route } from '$lib/route'; import { locale } from '$lib/stores/preferences.store'; import { getAssetMediaUrl } from '$lib/utils'; import { getAssetType } from '$lib/utils/asset-utils'; import { handleError } from '$lib/utils/handle-error'; import { isTenMinutesApart } from '$lib/utils/timesince'; - import { ReactionType, type ActivityResponseDto, type AssetTypeEnum, type UserResponseDto } from '@immich/sdk'; + import { ReactionType, type ActivityResponseDto, type AssetTypeEnum } from '@immich/sdk'; import { Icon, IconButton, LoadingSpinner, Textarea, toastManager } from '@immich/ui'; import { mdiClose, mdiDeleteOutline, mdiDotsVertical, mdiSend, mdiThumbUp } from '@mdi/js'; import * as luxon from 'luxon'; @@ -39,7 +40,6 @@ }; interface Props { - user: UserResponseDto; assetId?: string | undefined; albumId: string; assetType?: AssetTypeEnum | undefined; @@ -47,7 +47,7 @@ disabled: boolean; } - let { user, assetId = undefined, albumId, assetType = undefined, albumOwnerId, disabled }: Props = $props(); + let { assetId = undefined, albumId, assetType = undefined, albumOwnerId, disabled }: Props = $props(); let innerHeight: number = $state(0); let activityHeight: number = $state(0); @@ -147,7 +147,7 @@ /> {/if} - {#if reaction.user.id === user.id || albumOwnerId === user.id} + {#if reaction.user.id === authManager.user.id || albumOwnerId === authManager.user.id}
{/if} - {#if reaction.user.id === user.id || albumOwnerId === user.id} + {#if reaction.user.id === authManager.user.id || albumOwnerId === authManager.user.id}
- +