When a user attempts to add a Twitter user (account) that has already been added by another user (so the same account) the system throws this error:
The problem is the check should prevent a user from adding duplicates of the same Twitter account, but different users should be able to add the same Twitter account.
Solution:
If account is new to the user and does not exist, continue as normal
Account is new to user but added by another user, do not insert but return the twitter user id
User has already added this account then "account already exists" error
When a user attempts to add a Twitter user (account) that has already been added by another user (so the same account) the system throws this error:
The problem is the check should prevent a user from adding duplicates of the same Twitter account, but different users should be able to add the same Twitter account.
Solution: