Giter VIP home page Giter VIP logo

mastodon.el's People

Contributors

alexjgriffith avatar clarkenciel avatar hdurer avatar ieure avatar jdenen avatar jdormit avatar juergenhoetzel avatar mooseyboots avatar saper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mastodon.el's Issues

IWBN to have automatic refresh

Apparently, mastodon.el does not automatically refrshes the open timeline: I need to call mastodon-tl--update (which has no key binding by default). Why not a periodic automatic resfresh, with a period configured by a variable?

Default "colors" are bot really usable

The default color for toots is a very pale grey, almost unreadable. The blue for the user names is not much better.

I suggest to change the default and (probably more important) to document how the user could change it (my own preference would be to use the default font/color for everything).

Does not work with non-ASCII characters

In mastodon-mode, non-ASCII characters in usernames or in toots are displayed by escape sequences of the UTF-8 (\303\251 instead of é).

mastodon.el just git pulled

GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, modified by Debian (can display Unicode just fine)

Scope issue on new toot

mastodon-toot returns a 403 Forbidden error response. The error message mentions a scope issue:

{"error":"This action is outside the authorized scopes"}

Since mastodon.el registers with "read write follow" scopes, this doesn't make much sense.

I can use the same token from mastodon--api-token-string to GET posts.

curl --header "Authorization: Bearer ${TOKEN}" -sS https://mastodon.social/api/v1/statuses/1895661

This returns a 200 and the toot data.

Add to MELPA

  • Submit PR to MEPLA
  • Wait for PR to be merged
  • Update README

Use unwind-protect?

Look into the unwind-protect function for cleaning up buffers on TL switches, new toots, replies, etc.

Missing a license file

The headings in mastodon.el state it's licensed under the GPLv3 but this repository doesn't have a copy of it

Integration environment

Right now, I'm developing/testing against the flagship API. It would probably be better to use a locally running Mastodon instance. Add a docker-compose file that spins up an instance. Integrates with the dev environment from #2 too?

Handle 422 response

You can't favourite an already favourited toot. You get a 422 response. We should handle this gracefully instead of popping the failed response buffer. Options:

  1. Message feedback that says something like Already favourited #12345
  2. Make favourite function a toggle between favourite/unfavourite

Fix should be applied to the boost function too.

Better success callback

Right now, the success callback on a new toot opens the response buffer from url-retrieve. It should just message a success, perhaps with the toot id.

  • new toot
  • reply
  • boost
  • favourite

Detect and invoke emojify

With discover, we auto-detect it in the user's Emacs environment and use it if it's there. This keeps the user from having to write their own hook. I'd like to do the same with emojify now that the UTF-8 encoding issue is fixed.

Refactor to use synchronous calls in mastodon-http

The asynch default of url-retrieve makes things too complicated, especially the HTTP actions taken in mastodon-auth. Look at mastodon-http--get for an example of how much url-retreive-synchronously makes life easier.

JSON readtable error

Hello,

I have configured mastodon.el as follows:

(add-to-list 'load-path "~/.emacs.d/elisp/mastodon/lisp")
(require 'mastodon)
(setq mastodon-instance-url "https://mastodon.zaclys.com")

When I then try to M-x mastodon, I am asked for my e-mail and password and then get the following error:

Contacting host: mastodon.zaclys.com:443
error in process filter: url-http-parse-headers: Wrong type argument: char-or-string-p, nil
error in process filter: Wrong type argument: char-or-string-p, nil
json-read: JSON readtable error

My Emacs version is GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on trouble, modified by Debian.

Thank you for making this Mastodon Emacs client, I hope that I will soon be able to test it!

IWBN to have a roadmap

For instance, is there a plan to add the ability to display toots, not just create them?

`Replaced 0 occurrences` from `mastodon-tl--update` and the favourited toot is not marked with `(F)`

How to reproduce:

  1. open a timeline in Emacs
  2. pick some existing toot from the timeline
  3. open mastodon in the web browser
  4. use the web interface to favourite the toot picked
  5. update Emacs timeline

Expected:

  1. (F) marker on a toot

Actual:

  1. Replaced 0 occurrences message
  2. Nothing changes

After this when favourite the toot from the emacs buffer I get:

Favourited #3825346

and I get the new buffer with

HTTP/1.1 422 Unprocessable Entity
Date: Sat, 22 Apr 2017 20:53:01 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: Mastodon
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 299
X-RateLimit-Reset: 2017-04-22T20:55:00.151905Z
Vary: Accept-Encoding, Origin
Content-Encoding: gzip
Cache-Control: no-cache
X-Request-Id: bee31336-e2c2-4208-aa47-c22c131d7044
X-Runtime: 0.059796

{"error":"Validation failed: Status has already been taken"}

(not a good "success" callback by the way)

Dev environment

I need a clean working Emacs state. Since I use Spacemacs, I risk some contamination from other packages. A Docker image with a clean Emacs is probably the easiest solution.

Request more toots

When I use the mastodon-tl--goto-next-toot function from the last toot in my buffer, it should request toots older than toot at point and append the response data to the buffer.

Success callback triggered before failure buffer pops

  1. Favourite a toot
  2. Favourite again

You'll get the successful feedback:

Favourited #12345

And then a buffer:

HTTP/1.1 422 Unprocessable Entity
Date: Sat, 22 Apr 2017 20:53:01 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: Mastodon
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 299
X-RateLimit-Reset: 2017-04-22T20:55:00.151905Z
Vary: Accept-Encoding, Origin
Content-Encoding: gzip
Cache-Control: no-cache
X-Request-Id: bee31336-e2c2-4208-aa47-c22c131d7044
X-Runtime: 0.059796

{"error":"Validation failed: Status has already been taken"}

Remove mastodon-register-client function

This was useful before the major mode existed. Now, it is out of date and will throw an error when used.

  • Remove function
  • Remove references to the function from the README

CW toot modifier

We should be able to do the following from a mastodon-toot mode buffer:

  • Add a content warning
  • Add CW spoiler text

Mastodon major mode

This is more an epic level issue that should be broken down. The major mode should provide:

  • Read access to timelines:
    • Home
    • Local
    • Federated
    • Tags
    • Update to latest toots
  • Interactions with toots:
    • Boost
    • Favourite
    • Reply
    • See thread
  • Keybindings
    • Switch between timelines
    • Move to next/previous toot
    • Boost, Favourite, Reply to, Open thread
    • New toot

IWBN to have Oauth

This would allow to get a permanent authorization, avoiding to type the password each time you run Emacs. The Twitter twittering-mode does it.

If 2FA is enabled, mastodon.el goes into an infinite auth loop

When a user has 2 Factor Auth enabled, mastodon.el is unable to authenticate and will prompt for the username and password until the user either (a) disables their 2 Factor Auth, or (b) exits emacs.

Mastodon.el should do one of the following if 2FA is turned on:

  • Use OAuth to get a token
  • Prompt for the 2FA auth code and submit it for the user
  • Cleanly exit/error out so that the user can turn off 2FA

Travis

Continuous integration is good too. Once I've got some tests to run ( #5 ), I should setup CI with Travis.

Evil support

Many of my keybindings are Vim inspired. This proposes a problem for evil users in normal mode. Look into what it would take to support evil users out of the box.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.