Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user tags to post_photo function #108

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add user tags to post_photo function #108

wants to merge 3 commits into from

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