Skip to content

Commit

Permalink
Restore $TARGET$
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep authored Oct 21, 2023
1 parent 23a9bf6 commit c391a67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/FlagTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const flagCategories: FlagCategory[] = [
id: 4,
displayName: 'Duplicate answer',
reportType: FlagNames.ModFlag,
flagText: 'The post is a repost of their other answer, but as there are slight differences '
flagText: 'The post is a repost of their other answer: $TARGET$, but as there are slight differences '
+ '(see $COPYPASTOR$), an auto flag would not be raised.',
comments: {
low: "Please don't add the [same answer to multiple questions](//meta.stackexchange.com/q/104227)."
Expand All @@ -90,7 +90,7 @@ export const flagCategories: FlagCategory[] = [
id: 5,
displayName: 'Bad attribution',
reportType: FlagNames.Plagiarism,
flagText: 'This post is copied from the linked answer, as can be seen here $COPYPASTOR$. The author '
flagText: 'This post is copied from $TARGET$, as can be seen here $COPYPASTOR$. The author '
+ 'only added a link to the other answer, which is [not the proper way of attribution]'
+ '(//stackoverflow.blog/2009/06/25/attribution-required).',
feedbacks: { Smokey: '', Natty: '', Guttenberg: 'tp', 'Generic Bot': '' },
Expand Down
2 changes: 1 addition & 1 deletion src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export function getFullFlag(
const copypastorLink = `https://copypastor.sobotics.org/posts/${postId}`;

return content
.replace(placeholderTarget, target)
.replace(placeholderTarget, `https:${target}`)
.replace(placeholderCopypastorLink, copypastorLink);
}

Expand Down

0 comments on commit c391a67

Please sign in to comment.