Ivan Tashkinov
be9d18461a
FollowingRelationship storage & performance optimizations (state turned `ecto_enum`-driven integer, reorganized indices etc.).
4 роки тому
Ivan Tashkinov
dfbc05d496
Misc refactoring / tweaks (`ThreadMute.exists?/2`).
4 роки тому
Ivan Tashkinov
460e41585c
Further preloading (more endpoints), refactoring, tests.
4 роки тому
Egor Kislitsyn
9081a071ee
Add a test for accounts/update_credentials
4 роки тому
Ivan Tashkinov
e743c22329
Fixed incorrect usage of "relations" as a short form of "relationships".
4 роки тому
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 роки тому
Egor Kislitsyn
d1a9716a98
Fix activity deletion
4 роки тому
lain
eec1fcaf55
Home timeline tests: Add failing test for relationships
4 роки тому
Haelwenn (lanodan) Monnier
15be6ba9c2
AccountView: fix for other forms of <br> in bio
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1643
4 роки тому
Ivan Tashkinov
1c05f539aa
Improved in-test `clear_config/n` applicability (setup / setup_all / in-test usage).
4 роки тому
Alexander Strizhakov
fe15f0ba15
restrict_unauthenticated setting
4 роки тому
Alexander Strizhakov
98a60df41f
include_types parameter in /api/v1/notifications
4 роки тому
Ivan Tashkinov
ec3719f539
Improved in-test config management functions.
4 роки тому
Ivan Tashkinov
7438833685
[ #1364 ] Improved notification-related tests.
4 роки тому
eugenijm
13cce9c0de
Admin API: `PATCH /api/pleroma/admin/users/:nickname/credentials`, `GET /api/pleroma/admin/users/:nickname/credentials`.
4 роки тому
eugenijm
d198e7fa2a
Admin API: `PATCH /api/pleroma/admin/users/:nickname/change_password`
4 роки тому
Alexander Strizhakov
f3791add99
removing with_move parameter
4 роки тому
Alexander Strizhakov
dc2ec84c0f
warnings fix
4 роки тому
Alexander Strizhakov
89e4b3ebbd
fix for content-type header for tag feed
4 роки тому
Alexander Strizhakov
91870c8995
adding rss for user feed
4 роки тому
Alexander Strizhakov
26e2076659
fix for feed page pagination
4 роки тому
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 роки тому
Ivan Tashkinov
7c8003c3fc
[ #1364 ] Improved control over generation / sending of notifications. Fixed blocking / muting users notifications issue. Added tests.
4 роки тому
Haelwenn (lanodan) Monnier
dca21cd1d6
test/earmark_renderer_test.exs: Rename from test/earmark_renderer_test.ex
Wasn't in the test suite otherwise
4 роки тому
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 роки тому
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 роки тому
Mark Felder
db36b48180
Remove test verifying we preserve cache-control headers; we don't
4 роки тому
Mark Felder
470090471d
Fix test to use new cache-control settings
4 роки тому
Egor Kislitsyn
fffc382f13
Fix hashtags WebSocket streaming
4 роки тому
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 роки тому
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 роки тому
Alexander Strizhakov
282a93554f
merging release default config on app start
4 роки тому
Ivan Tashkinov
5b696a8ac1
[ #1560 ] Enforced authentication for non-federating instances in StaticFEController.
4 роки тому
Mark Felder
5af798f246
Fix enforcement of character limits
4 роки тому
Ivan Tashkinov
5fc92deef3
[ #1560 ] Ensured authentication or enabled federation for federation-related routes. New tests + tests refactoring.
4 роки тому
Ivan Tashkinov
40765875d4
[ #1560 ] Misc. improvements in ActivityPubController federation state restrictions.
4 роки тому
eugenijm
ad22e94f33
Exclude private and direct statuses visible to the admin when using godmode
4 роки тому
lain
f1750b4658
Admin API tests: Fix wrong test.
4 роки тому
lain
4bce13fa2f
MastodonController: Return 404 errors correctly.
4 роки тому
Mark Felder
5592db4757
Older copyright updates
4 роки тому
Mark Felder
05da5f5cca
Update Copyrights
4 роки тому
Ivan Tashkinov
b6fc98d9cd
[ #1560 ] ActivityPubController federation state restrictions adjustments. Adjusted tests.
4 роки тому
Ivan Tashkinov
bd8624d649
[ #1560 ] Added tests for non-federating instance bahaviour to OStatusControllerTest.
4 роки тому
Ivan Tashkinov
b4367125e9
[ #1560 ] Added tests for non-federating instance bahaviour to ActivityPubControllerTest.
4 роки тому
Alexander Strizhakov
cc98d010ed
relay list shows hosts without accepted follow
4 роки тому
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 роки тому
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 роки тому
Alexander Strizhakov
32d1e04817
ActivityPub actions & side-effects in transaction
4 роки тому
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 роки тому
Ivan Tashkinov
c747260989
[ #2250 ] Tiny refactoring per merge request review.
4 роки тому