aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2022-03-08Implement visibility filtering for announcementsTusooa Zhu
2022-03-08Implement POST /api/v1/announcements/:id/dismissTusooa Zhu
2022-03-08Implement GET /api/v1/announcements/:idTusooa Zhu
2022-03-08Implement announcement read relationshipsTusooa Zhu
2022-03-08Implement first pass of announcement admin apiTusooa Zhu
CCBUG: https://git.pleroma.social/pleroma/pleroma/-/issues/2836 CCBUG: https://git.pleroma.social/pleroma/pleroma/-/issues/1470
2022-03-06Merge branch 'fix_test_get_user_apps' into 'develop'Haelwenn
Fix test get_user_apps/1 See merge request pleroma/pleroma!3636
2022-03-06Support fallbacking to other languagesTusooa Zhu
2022-03-06Delete report notifs when demoting from superuserIlja
When someone isn't a superuser any more, they shouldn't see the reporsts any more either. Here we delete the report notifications from a user when that user gets updated from being a superuser to a non-superuser.
2022-03-03LintTusooa Zhu
2022-03-03Support multiple locales from userLanguage cookieTusooa Zhu
2022-03-03Support multiple locales formallyTusooa Zhu
elixir gettext current does not fully support fallback to another language [0]. But it might in the future. We adapt it so that all languages in Accept-Language headers are received by Pleroma.Web.Gettext. User.languages is now a comma-separated list. [0]: https://github.com/elixir-gettext/gettext/issues/303
2022-03-02Add test for fallbacking to a general languageTusooa Zhu
2022-03-02Fallback to a variant if the language in general is not supportedTusooa Zhu
For an example, here, zh is not supported, but zh_Hans and zh_Hant are. If the user asks for zh, we should choose a variant for them instead of fallbacking to default. Some browsers (e.g. Firefox) does not allow users to customize their language codes. For example, there is no zh-Hans, but only zh, zh-CN, zh-TW, zh-HK, etc. This provides a workaround for those users suffering from bad design decisions.
2022-03-02Allow user to register with custom languageTusooa Zhu
2022-03-01Send emails i18n'd using backend-stored user languageTusooa Zhu
2022-03-01Fix digest testTusooa Zhu
2022-02-26Merge branch 'revert/notice-routes' into 'develop'HJ
Revert notice compatibility routes merge request See merge request pleroma/pleroma!3576
2022-02-25Copyright bump for 2022Sean King
2022-02-22Fix test get_user_apps/1Ilja
For some reason I had a test who suddenly failed, mix test test/pleroma/web/o_auth/app_test.exs:54. A user has a list of applications and this test adds them and then sees if the list it gets back is the same as the apps it added. When I ran mix test a day before I didn't have this problem and when I pushed code today in a different MR, the pipeline succeeded (see https://git.pleroma.social/ilja/pleroma/-/jobs/205827), yet locally it failed. So it seems the test can sometimes succeed and sometimes fail, which makes it untrustworthy. The failure I see is because the returned list is in reverse order. I assume that's not per sé wrong. You just want to know if the apps you added are actually there. I fixed the test by first ordering the lists before comparing. AFAICT (and as far as that's relevant) the test got introduced in commit cb2a072e6252b7c3f6473f7cfd1af5c0ec732d7b
2022-02-21Prefer userLanguage cookie over Accept-Language header in detecting localeTusooa Zhu
https://git.pleroma.social/pleroma/pleroma-meta/-/issues/60
2022-02-21Add unicode 14 supportSam Therapy
and add a test with a unicode 14 emoji
2022-02-06Max media attachment countmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-02FilterControllerTest: tag erratic testAlex Gleason
2022-02-02Fix tests matching on "warn"Haelwenn (lanodan) Monnier
Moving it to "warning" would break tests on 1.12.x
2022-02-02Tag erratic testAlex Gleason
2022-02-02Add tests for mismatched context in repliesAlex Gleason
2022-02-02Test that a Create/Note from Roadhouse validatesAlex Gleason
2022-02-02Test that a Note from Roadhouse validatesAlex Gleason
2022-01-27ForceMentionsInContent: improve display of Markdown postsAlex Gleason
2022-01-26ForceMentionsInContent: don't apply it to top-level postsAlex Gleason
2022-01-25ForceMentionsInContent: don't mention selfAlex Gleason
2022-01-25Merge branch 'recipients-inline' into 'develop'Alex Gleason
ForceMentionsInContent: wrap mentions in a span, fix the formatting See merge request pleroma/pleroma!3620
2022-01-25Merge branch 'birth-dates' into 'develop'Alex Gleason
Fix show_birthday See merge request pleroma/pleroma!3621
2022-01-25ForceMentionsInContent: fix order of mentionsAlex Gleason
2022-01-25AccountView: Add test for show_birthdaymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-25Merge branch 'birth-dates' into 'develop'Alex Gleason
Birth dates See merge request pleroma/pleroma!3608
2022-01-24ForceMentionsInContentTest: return mentions in a not terrible formatAlex Gleason
2022-01-23Add a testmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-23Birthdays: Fix tests, add test for misskeymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-23Birthdays: hide_birthday -> show_birthdaymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-22Merge remote-tracking branch 'origin/develop' into birth-datesAlex Gleason
2022-01-22Birthdays: birth_date --> birthdayAlex Gleason
2022-01-22Make test less erratic by adding five second toleranceNEETzsche
2022-01-22FilterTest: tag erratic testAlex Gleason
2022-01-20Merge branch 'private-pins' into 'develop'Alex Gleason
Support private pinned posts from Mastodon See merge request pleroma/pleroma!3611
2022-01-20Test pinned private statuses in AccountControllerAlex Gleason
2022-01-20Support private pinned posts from Mastodonmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-19Add ForceMentionsInContentPolicyrinpatch
Even though latest PleromaFE supports displaying these properly, mobile apps still exist, so I think we should offer a workaround to those who want it.
2022-01-18Birth dates: Add testsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-18Format code, expose instance configuration related to birth datesmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>