~thrrgilag/squeak

use specific scopes v1 APPLIED

Robert: 2
 use specific scopes
 only include raw for posts

 2 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~thrrgilag/squeak/patches/16402/mbox | git am -3
Learn more about email & git

[PATCH 1/2] use specific scopes Export this patch

From: Robert <robert@pnut.io>

---
 src/widgets.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/widgets.py b/src/widgets.py
index 483d480..7634280 100644
--- a/src/widgets.py
+++ b/src/widgets.py
@@ -129,7 +129,7 @@ class LoginPage(Gtk.Box):

        client_id = "1PiUzxfX_CQxKvtz93lUzPX9-FMtz-va"
        redirect_uri = "urn:ietf:wg:oauth:2.0:oob"
        scope =  "basic,stream,write_post,follow,presence,messages,files,polls"
        scope =  "basic,stream,write_post,follow,presence,messages:io.pnut.core.chat,messages:io.pnut.core.pm,files:squeak.thrrgilag,polls"

        uri = "https://pnut.io/oauth/authenticate"
        uri += "?client_id=" + client_id
-- 
2.25.1

[PATCH 2/2] only include raw for posts Export this patch

From: Robert <robert@pnut.io>

---
 src/widgets.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/widgets.py b/src/widgets.py
index 7634280..42005a1 100644
--- a/src/widgets.py
+++ b/src/widgets.py
@@ -257,7 +257,7 @@ class Timeline(Gtk.Box):

    def load_timeline(self, older=False):
        params = {
            'include_raw': 1
            'include_post_raw': 1
        }

        if older:
-- 
2.25.1