Coder Social home page Coder Social logo

Comments (5)

mooseyboots avatar mooseyboots commented on May 29, 2024

(mastodon-profile--get-preferences-pref 'reading:expand:spoilers) returns the desired value.

the test in mastodon.el is at https://codeberg.org/martianh/mastodon.el/src/commit/dfc40c0bc2c8f1653ca71335b6ad99230f38067e/lisp/mastodon-tl.el#L1028

from mastodon-alt.

deen1 avatar deen1 commented on May 29, 2024

@mooseyboots Thanks -- this evaluates to :json-false, which I believe is the correct value. So I guess the next step is to use this condition to re-implement this test in mastodon-alt.

from mastodon-alt.

rougier avatar rougier commented on May 29, 2024

Thanks, I'll look into that or @deen1, do you want to make a PR? I think thie line needs to be modified.

from mastodon-alt.

deen1 avatar deen1 commented on May 29, 2024

@rougier I tried to adjust the line by doing

            (mastodon-alt-tl--folding-box content
                                          mastodon-alt-tl-box-width
					  nil
					  (eq :json-false
						      (condition-case nil
							  (mastodon-profile--get-preferences-pref
							   'reading:expand:spoilers)
							(error nil)))
                                          mastodon-alt-tl-box-prefix)

but this just seems to break boxes for boosts rather than fix CWs -- is it this line that needs to be fixed?

EDIT: Yes, that seemed to do the trick for me. Maybe the pull request #16 will work for everyone?

from mastodon-alt.

rougier avatar rougier commented on May 29, 2024

Just merged it!

from mastodon-alt.

Related Issues (9)

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.