Python backend for a Slack's kudos plugin.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'main' of github.com:Dekalabs/kefi-backend

+2 -2
+2 -2
kefi/routers/helpers.py
··· 73 73 if not action: 74 74 return SimpleResponse("No existe la acción asociada a este comando") 75 75 slack_user_id = self.extract_user_id(params[0]) 76 + if self.user.slack_user_id == slack_user_id: 77 + return SimpleResponse("No puedes realizar esta acción sobre ti mismo") 76 78 if not slack_user_id: 77 79 return SimpleResponse("No se ha especificado un destinatario") 78 80 message = " ".join(params[1:]) ··· 81 83 ) 82 84 if not receiver: 83 85 return SimpleResponse("No se ha encontrado al usuario receptor") 84 - if self.user.slack_user_id == receiver.slack_user_id: 85 - return SimpleResponse("No puedes realizar esta acción sobre ti mismo") 86 86 send_action( 87 87 sender=self.user, 88 88 action=action,