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

Feature mathtex #28

Closed
wants to merge 77 commits into from
Closed

Feature mathtex #28

wants to merge 77 commits into from

Conversation

sneakers-the-rat
Copy link
Collaborator

re-merging mathtex into dev-stable after merging upstream

christianp and others added 30 commits October 9, 2019 18:54
MathJax should be cloned in the folder `public/MathJax`.
content security policy forbids inline scripts, and I can't work out
where to put the config otherwise
MathJax is loaded from the URL /MathJax - you'll need to get a copy and set nginx to serve it. I cloned [email protected]:mathjax/MathJax into /srv/www/MathJax, and then added the following to my nginx config:

 location /MathJax {
  alias /srv/www/MathJax;
 }

After applying this patch, you'll have to do `rails assets:precompile`, and restart all the Mastodon services.
While OAuth tokens were immediately revoked, accessing the home
controller immediately generated new OAuth tokens and "revived"
the session due to a combination of using remember_me tokens and
overwriting the `authenticate_user!` method
- Rate limit login attempts by target account
- Rate limit password resets and e-mail re-confirmations by target account
- Rate limit sign-up/login attempts, password resets, and e-mail re-confirmations by IP like before
This commit adds a latex suggestion type. The main point is to show a
preview rendering of LaTeX as it's being typed, but it can also add
closing braces and the end delimiter.

It might be nice to have suggestions for individual latex commands.
…on#14800)

* Do not serve account actors at all in limited federation mode

When an account is fetched without a signature from an allowed instance,
return an error.

This isn't really an improvement in security, as the only information that was
previously returned was required protocol-level info, and the only personal bit
was the existence of the account. The existence of the account can still be
checked by issuing a webfinger query, as those are accepted without signatures.

However, this change makes it so that unallowed instances won't create account
records on their end when they find a reference to an unknown account.

The previous behavior of rendering a limited list of fields, instead of not
rendering the actor at all, was in order to prevent situations in which two
instances in Authorized Fetch mode or Limited Federation mode would fail to
reach each other because resolving an account would require a signed query…
from an account which can only be fetched with a signed query itself. However,
this should now be fine as fetching accounts is done by signing on behalf of
the special instance actor, which does not require any kind of valid signature
to be fetched.

* Fix tests
…sts (mastodon#14479)

* Add tests

* Fix handling of Reject Follow when a matching follow relationship exists

Regression from mastodon#12199
There are edge cases where requests to certain hosts timeout when
using the vanilla HTTP.rb gem, which the goldfinger gem uses. Now
that we no longer need to support OStatus servers, webfinger logic
is so simple that there is no point encapsulating it in a gem, so
we can just use our own Request class. With that, we benefit from
more robust timeout code and IPv4/IPv6 resolution.

Fix mastodon#14091
)

* Change content-type to be always computed from file data

Restore previous behavior, detecting the content-type isn't very
expensive, and some instances may serve files as application/octet-stream
regardless of their true type, making fetching media from them fail, while
it used to work pre-3.2.0.

* Add test
christianp and others added 24 commits November 22, 2022 20:19
# Conflicts:
#	app/views/layouts/embedded.html.haml
#	config/initializers/content_security_policy.rb
#	config/themes.yml
- separate out collapse/expand button to be reused
- make gradient not full height of post
[feature] Autofollow accounts in .env file on new account creation
# Conflicts:
#	Gemfile.lock
#	app/javascript/mastodon/features/compose/components/compose_form.js
Expand number of lines in collapsed posts
…ly. frick it we are just going with the mathstodon way.
and then also fix linting errors to satisfy pre-commit action
dont import glitch from mastodon
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions
Copy link

github-actions bot commented Oct 7, 2023

This pull request has resolved merge conflicts and is ready for review.

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.

6 participants