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 watch_topic #31
add watch_topic #31
Conversation
adds: user gets notifications about a topic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__init__.py
renamed to ahaha__init__.py
?
sorry for the one useless commit. I just didn't excpected the pull request gets resolved right after i tried out some stuff . Now everything is back in place. |
I just wanted to clarify that my commit is ready for pulling since 2020/05/14. |
The feature would be a nice addition, but there's some unnecessary commits and changes here. I started to clean that up - which is not a big deal - but I'm confused about why the |
""" | ||
Suspend a user's account | ||
|
||
Args: | ||
userid: the Discourse user ID | ||
duration: the length of time in days for which a user's account | ||
should be suspended | ||
should be suspended (365000 for forever) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this resetting the api_username?
Returns: | ||
|
||
""" | ||
self.api_username = username |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this resetting the api_username
? That's the username to connect to the API with, and it's already set when creating the client instance. Changing it here would presumably result in authentication errors trying to make requests to the Discourse API...
Closing this, if requested changes are made will re-open. |
yes sure,
i am very sorry that my communication was so bad.
I fact the resetting the api_username is need for the functionality and
works if the api_user is system
(dont know why) but dont works if the api_user is some else.
So it's probably nothing for the official pydiscourse like that.
Unfortunately i could figure out how to do this in a better way with the
given discourse api
so i lost my motivation.
Sorry for the additional work for you.
Greeting grischan
Am Mi., 11. Nov. 2020 um 00:37 Uhr schrieb Ben Lopatin <
notifications@github.com>:
… Closed #31 <#31>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#31 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASLTZFDNNYRLSVZPCSSYCDSPHFE5ANCNFSM4MHJEI7Q>
.
|
Summary of changes
adds api call for: user gets notifications about a topic.
Checklist