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

fixing errors with bug and new ui #54

Merged
merged 18 commits into from
Nov 16, 2020
Merged

fixing errors with bug and new ui #54

merged 18 commits into from
Nov 16, 2020

Conversation

philip-ulrich
Copy link
Contributor

No description provided.

@philip-ulrich philip-ulrich marked this pull request as draft November 15, 2020 22:00
@philip-ulrich
Copy link
Contributor Author

It's still a draft. :D Don't approve it yet

@philip-ulrich philip-ulrich marked this pull request as ready for review November 16, 2020 02:08
@philip-ulrich
Copy link
Contributor Author

This ended up being a mixed grab bag of fixes and the commit will be fixed in the squash, here is the recap:

  1. Fix issue when you have no followers or followings
  2. Fix follow button for profiles with shop link - ended up doing "global" find on view after seeing how unfollow was done.
  3. Change unfollow to only find button
  4. Added example filter.json
  5. Added hacky (disabled) "test" plugin for interacting with single user

FOLLOW_REGEX = "Follow|Follow Back"
UNFOLLOW_REGEX = "Following|Requested"
BUTTON_REGEX = "android.widget.Button"
FOLLOW_REGEX = "^Follow|^Follow Back"
Copy link
Member

Choose a reason for hiding this comment

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

Follow Back is unnecessary since Follow will already match it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair - that was just how it was originally.

Copy link
Member

Choose a reason for hiding this comment

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

I had a comment but is not critical. You can remove this in another future commit.

- The old method used an identifier that no longer exists (thanks IG)
- The old method used unneeded logic to determine if it was a block dialog
- The new method just looks for another unfollow button (technically TextView) and clicks it if it's there
- Still does followup check for block dialog

Tested using force_interact on a private account I followed.
- the original removal broke the regex for follow back
- in breaking follow back, I realized we actually follow back? That doesn't make sense. The point of following and liking people is to gain followers.
@philip-ulrich philip-ulrich merged commit f8a3f93 into develop Nov 16, 2020
@philip-ulrich philip-ulrich deleted the bugfixes-newui branch November 16, 2020 04:41
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.

2 participants