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) {