From b37476990d84df13a0c3fd4da0713417b4b5ee0a Mon Sep 17 00:00:00 2001 From: rajpatil6939 Date: Mon, 24 Jan 2022 15:45:01 +0530 Subject: [PATCH] retweet url validation added at participant side(issues/827 fixed) --- src/components/participant/ActionInputs/TwitterRetweet.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/participant/ActionInputs/TwitterRetweet.vue b/src/components/participant/ActionInputs/TwitterRetweet.vue index 04a735b6..a0033d12 100644 --- a/src/components/participant/ActionInputs/TwitterRetweet.vue +++ b/src/components/participant/ActionInputs/TwitterRetweet.vue @@ -82,6 +82,7 @@ import webAuth from "../../../mixins/twitterLogin"; import eventBus from "../../../eventBus.js"; import notificationMixins from "../../../mixins/notificationMixins"; import Messages from "../../../utils/messages/participants/en"; +import { isretweetUrl } from '../../../mixins/fieldValidationMixin'; export default { components: { Loading }, name: "TwitterRetweet", @@ -166,6 +167,10 @@ export default { if (!this.retweetUrl) { throw new Error("Retweet url cannot be empty"); } + if(isretweetUrl(this.retweetUrl)){ + this.retweetUrl=''; + return false; + } this.isLoading = true; const twitterId = localStorage.getItem("twitterId"); if (twitterId) {