Skip to content

Commit 2035829

Browse files
committed
Fix domain ident aliases when not aggregating parent domain
1 parent e0f18dc commit 2035829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/SnoowrapUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ export const getSubmissionFromComment = async (item: Comment): Promise<Submissio
486486
export const getAttributionIdentifier = (sub: Submission, useParentMediaDomain = false): DomainInfo => {
487487
let domain: string = '';
488488
let displayDomain: string = '';
489-
let domainIdents: string[] = [sub.domain];
489+
let domainIdents: string[] = useParentMediaDomain ? [sub.domain] : [];
490490
let provider: string | undefined;
491491
if (!useParentMediaDomain && sub.secure_media?.oembed !== undefined) {
492492
const {

0 commit comments

Comments
 (0)