rinpatch
c3b9fbd3a7
Revert "Set better Cache-Control header for static content"
On furher investigation it seems like all that did was cause unintuitive
behavior. The emoji request flood that was the reason for introducing it
isn't really that big of a deal either, since Plug.Static only needs to
read file modification time and size to determine the ETag.
Closes #1613
4 years ago
Alexander Strizhakov
282a93554f
merging release default config on app start
4 years ago
Ivan Tashkinov
5b696a8ac1
[ #1560 ] Enforced authentication for non-federating instances in StaticFEController.
4 years ago
Mark Felder
5af798f246
Fix enforcement of character limits
4 years ago
Ivan Tashkinov
5fc92deef3
[ #1560 ] Ensured authentication or enabled federation for federation-related routes. New tests + tests refactoring.
4 years ago
Ivan Tashkinov
40765875d4
[ #1560 ] Misc. improvements in ActivityPubController federation state restrictions.
4 years ago
eugenijm
ad22e94f33
Exclude private and direct statuses visible to the admin when using godmode
4 years ago
lain
f1750b4658
Admin API tests: Fix wrong test.
4 years ago
lain
4bce13fa2f
MastodonController: Return 404 errors correctly.
4 years ago
Mark Felder
5592db4757
Older copyright updates
4 years ago
Mark Felder
05da5f5cca
Update Copyrights
4 years ago
Ivan Tashkinov
b6fc98d9cd
[ #1560 ] ActivityPubController federation state restrictions adjustments. Adjusted tests.
4 years ago
Ivan Tashkinov
bd8624d649
[ #1560 ] Added tests for non-federating instance bahaviour to OStatusControllerTest.
4 years ago
Ivan Tashkinov
b4367125e9
[ #1560 ] Added tests for non-federating instance bahaviour to ActivityPubControllerTest.
4 years ago
Alexander Strizhakov
cc98d010ed
relay list shows hosts without accepted follow
4 years ago
Haelwenn (lanodan) Monnier
6da6540036
Bump copyright years of files changed after 2020-01-07
Done via the following command:
git diff fcd5dd259a
--stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
4 years ago
Haelwenn (lanodan) Monnier
6c0d869d9d
Bump copyright years of files changed after 2019-01-01
Done via the following command:
git diff 1e6c102b
--stat --name-only | cat - | xargs sed -i 's/2017-2018 Pleroma Authors/2017-2019 Pleroma Authors/'
4 years ago
Alexander Strizhakov
32d1e04817
ActivityPub actions & side-effects in transaction
4 years ago
rinpatch
4d416343fa
rate limiter: Fix a race condition
When multiple requests are processed by rate limiter plug at the same
time and the bucket is not yet initialized, both would try to initialize
the bucket resulting in an internal server error.
4 years ago
Ivan Tashkinov
c747260989
[ #2250 ] Tiny refactoring per merge request review.
4 years ago
Ivan Tashkinov
6f2efb1c45
Runtime configurability of RateLimiter. Refactoring. Disabled default rate limits in tests.
4 years ago
Egor Kislitsyn
cb60a9c42f
Do not fail when user has no email
4 years ago
eugenijm
4ab07cf0d5
Admin API: Exclude boosts from `GET /api/pleroma/admin/users/:nickname/statuses` and `GET /api/pleroma/admin/instance/:instance/statuses`
4 years ago
eugenijm
e2a6a40367
Admin API: `GET /api/pleroma/admin/statuses` - list all statuses (accepts `godmode` and `local_only`)
4 years ago
Egor Kislitsyn
f446744a6a
Allow account registration without an email
4 years ago
Egor Kislitsyn
c495e6d387
Add a test to ensure OAuth tokens are tied to Push subscriptions
4 years ago
Alexander Strizhakov
3eccdd15aa
compile fix
4 years ago
rinpatch
5e4fe0e8f7
instance.gen task: fix crash when using custom static directory
Closes #1082
4 years ago
eugenijm
7ad5c51f23
Admin API: `GET /api/pleroma/admin/stats` to get status count by visibility scope
4 years ago
Haelwenn (lanodan) Monnier
f9fe6a9e30
Captcha: return invalid when answer_data is nil
4 years ago
Haelwenn (lanodan) Monnier
ee57663d34
captcha_test.exs: Use the same testing logic in Kocaptcha and native
4 years ago
Ivan Tashkinov
0cf1d4fcd0
[ #1560 ] Restricted AP- & OStatus-related routes for non-federating instances.
4 years ago
lain
314928333a
Pleroma API: Add endpoint to get reaction information on a single emoji
4 years ago
Egor Kislitsyn
ca7ac068f0
Add a test
4 years ago
rinpatch
472132215e
Use floki's new APIs for parsing fragments
4 years ago
Ivan Tashkinov
269d592181
[ #1505 ] Restricted max thread distance for fetching replies on incoming federation (in addition to reply-to depth restriction).
4 years ago
Haelwenn (lanodan) Monnier
1257331291
MastodonAPI.StatusView: Do not use site_name
site_name allow to spoof the origin of the domain and so hacks like:
<!-- served on https://hacktivis.me/tmp/joinmastodon.org.html -->
<meta property="og:image" content="https://hacktivis.me/datalove/img/meme/pleroma/mastodon%2C%20forbidden%20amuse%20yourself.jpeg " />
<meta property="og:title" content="Mastodon: Forbidden Amuse Yourself" />
<meta property="og:site_name" content="joinmastodon.org" />
<meta http-equiv="refresh" content="0; url=http://joinmastodon.org/ ">
4 years ago
Ivan Tashkinov
4f8c3462a8
Tweaks to `clear_config` calls in tests in order to prevent side effects on config during test suite execution.
4 years ago
Egor Kislitsyn
19516af74e
Fix `status.expires_in` validation
4 years ago
Mark Felder
ff9fd4ca89
Fix the confusingly named and inverted logic of "no_attachment_links"
The setting is now simply "attachment_links" and the boolean value does
what you expect. A double negative is never possible and describing the
functionality is no longer a philospher's worst nightmare.
4 years ago
Egor Kislitsyn
58b2017aa0
Restore TwitterAPI tests
4 years ago
Egor Kislitsyn
50d9fcbe29
Hotlink logo instead of attachment
4 years ago
feld
237b2068f9
Revert "Merge branch 'feat/floki-fasthtml' into 'develop'"
This reverts merge request !2194
4 years ago
rinpatch
ea1631d7e6
Make Floki use fast_html
4 years ago
Ivan Tashkinov
b95dd5e217
[ #1505 ] Improved replies-handling tests: updated Mastodon message fixture, used exact Pleroma federation message.
4 years ago
Ivan Tashkinov
24e49d14f2
[ #1505 ] Removed wrapping of reply URIs into `first` element, added comments to transmogrifier tests.
4 years ago
Ivan Tashkinov
7c3991f59e
[ #1505 ] Fixed `replies` serialization (included objects' ids instead of activities' ids).
4 years ago
Haelwenn
1e74bbc495
Merge branch 'fix-streaming-reblog' into 'develop'
Streamer: Correctly handle reblog mutes
Closes #1129 and #1438
See merge request pleroma/pleroma!2156
4 years ago
rinpatch
40727b28a7
Merge branch 'fix/truncate-remote-user-fields' into 'develop'
Truncate remote user fields
See merge request pleroma/pleroma!1619
4 years ago
Maksim Pechnikov
f486556346
fixed Metadata.Utils.scrub_html_and_truncate
4 years ago