Ivan Tashkinov
460e41585c
Further preloading (more endpoints), refactoring, tests.
4 lat temu
Ivan Tashkinov
13cbb9f6ad
Implemented preloading of relationships with parent activities' actors for statuses/timeline rendering. Applied preloading for notifications rendering. Fixed announces rendering issue (preloading-related).
4 lat temu
Egor Kislitsyn
d1a9716a98
Fix activity deletion
4 lat temu
lain
eec1fcaf55
Home timeline tests: Add failing test for relationships
4 lat temu
Haelwenn (lanodan) Monnier
15be6ba9c2
AccountView: fix for other forms of <br> in bio
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1643
4 lat temu
Ivan Tashkinov
1c05f539aa
Improved in-test `clear_config/n` applicability (setup / setup_all / in-test usage).
4 lat temu
Alexander Strizhakov
fe15f0ba15
restrict_unauthenticated setting
4 lat temu
Alexander Strizhakov
98a60df41f
include_types parameter in /api/v1/notifications
4 lat temu
Ivan Tashkinov
ec3719f539
Improved in-test config management functions.
4 lat temu
eugenijm
13cce9c0de
Admin API: `PATCH /api/pleroma/admin/users/:nickname/credentials`, `GET /api/pleroma/admin/users/:nickname/credentials`.
4 lat temu
eugenijm
d198e7fa2a
Admin API: `PATCH /api/pleroma/admin/users/:nickname/change_password`
4 lat temu
Alexander Strizhakov
f3791add99
removing with_move parameter
4 lat temu
Alexander Strizhakov
dc2ec84c0f
warnings fix
4 lat temu
Alexander Strizhakov
89e4b3ebbd
fix for content-type header for tag feed
4 lat temu
Alexander Strizhakov
91870c8995
adding rss for user feed
4 lat temu
Alexander Strizhakov
26e2076659
fix for feed page pagination
4 lat temu
Haelwenn (lanodan) Monnier
0ac6e29654
static_fe: Sanitize HTML in posts
Note: Seems to have different sanitization with TwitterCard generator giving
the following:
<meta content=\"“alert('xss')”\" property=\"twitter:description\">
4 lat temu
Haelwenn (lanodan) Monnier
dca21cd1d6
test/earmark_renderer_test.exs: Rename from test/earmark_renderer_test.ex
Wasn't in the test suite otherwise
4 lat temu
rinpatch
e87a32bcd7
rip out fetch_initial_posts
Every time someone tries to use it, it goes mad and tries to scrape the
entire fediverse for no visible reason, it's better to just remove it
than continue shipping it in it's current state.
idea acked by lain and feld on irc
Closes #1595 #1422
4 lat temu
rinpatch
fc4496d4fa
rate limiter: disable based on if remote ip was found, not on if the plug was enabled
The current rate limiter disable logic won't trigger when the remote ip
is not forwarded, only when the remoteip plug is not enabled, which is
not the case on most instances since it's enabled by default. This
changes the behavior to warn and disable when the remote ip was not forwarded,
even if the RemoteIP plug is enabled.
Also closes #1620
4 lat temu
Mark Felder
db36b48180
Remove test verifying we preserve cache-control headers; we don't
4 lat temu
Mark Felder
470090471d
Fix test to use new cache-control settings
4 lat temu
Egor Kislitsyn
fffc382f13
Fix hashtags WebSocket streaming
4 lat temu
Haelwenn (lanodan) Monnier
d1379c4de8
Formatting: Do not use \n and prefer <br> instead
It moves bbcode to bbcode_pleroma as the former is owned by kaniini
and transfering ownership wasn't done in a timely manner.
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1374
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1375
4 lat temu
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 lat temu
Alexander Strizhakov
282a93554f
merging release default config on app start
4 lat temu
Ivan Tashkinov
5b696a8ac1
[ #1560 ] Enforced authentication for non-federating instances in StaticFEController.
4 lat temu
Mark Felder
5af798f246
Fix enforcement of character limits
4 lat temu
Ivan Tashkinov
5fc92deef3
[ #1560 ] Ensured authentication or enabled federation for federation-related routes. New tests + tests refactoring.
4 lat temu
Ivan Tashkinov
40765875d4
[ #1560 ] Misc. improvements in ActivityPubController federation state restrictions.
4 lat temu
eugenijm
ad22e94f33
Exclude private and direct statuses visible to the admin when using godmode
4 lat temu
lain
f1750b4658
Admin API tests: Fix wrong test.
4 lat temu
lain
4bce13fa2f
MastodonController: Return 404 errors correctly.
4 lat temu
Mark Felder
5592db4757
Older copyright updates
4 lat temu
Mark Felder
05da5f5cca
Update Copyrights
4 lat temu
Ivan Tashkinov
b6fc98d9cd
[ #1560 ] ActivityPubController federation state restrictions adjustments. Adjusted tests.
4 lat temu
Ivan Tashkinov
bd8624d649
[ #1560 ] Added tests for non-federating instance bahaviour to OStatusControllerTest.
4 lat temu
Ivan Tashkinov
b4367125e9
[ #1560 ] Added tests for non-federating instance bahaviour to ActivityPubControllerTest.
4 lat temu
Alexander Strizhakov
cc98d010ed
relay list shows hosts without accepted follow
4 lat temu
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 lat temu
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 lat temu
Alexander Strizhakov
32d1e04817
ActivityPub actions & side-effects in transaction
4 lat temu
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 lat temu
Ivan Tashkinov
c747260989
[ #2250 ] Tiny refactoring per merge request review.
4 lat temu
Ivan Tashkinov
6f2efb1c45
Runtime configurability of RateLimiter. Refactoring. Disabled default rate limits in tests.
4 lat temu
Egor Kislitsyn
cb60a9c42f
Do not fail when user has no email
4 lat temu
eugenijm
4ab07cf0d5
Admin API: Exclude boosts from `GET /api/pleroma/admin/users/:nickname/statuses` and `GET /api/pleroma/admin/instance/:instance/statuses`
4 lat temu
eugenijm
e2a6a40367
Admin API: `GET /api/pleroma/admin/statuses` - list all statuses (accepts `godmode` and `local_only`)
4 lat temu
Egor Kislitsyn
f446744a6a
Allow account registration without an email
4 lat temu
Egor Kislitsyn
c495e6d387
Add a test to ensure OAuth tokens are tied to Push subscriptions
4 lat temu