Skip to content

Conversation

@deounix
Copy link

@deounix deounix commented Sep 16, 2018

What does this PR do?

Add user tags to post_photo function (WEB API ONLY)

Add random number that is cryptographically secure in python.
if len(user_tags) > 60:
warnings.warn('Adding more than 60 users will put your account at banned risk', UserWarning)
for user_id in user_tags:
user_tags_["in"].append({"user_id": user_id, "position": [cryptogen.random(), cryptogen.random()]})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forcibly putting user tags at random positions is not a good idea at all imo.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe adding an array with the x and y positions of each tag? i like the tagging idea, but i agree with you, adding it at random is very bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants