Commit Graph

531 Commits

Author SHA1 Message Date
Laurent GAY
04cf4efee4 manage user pending of moderation - #877 2025-09-11 20:07:20 +02:00
Laurent GAY
fbf22a83b2 Manage error about register - #877 2025-09-11 16:46:40 +02:00
Laurent GAY
45378f0e40 Add moderation text in user - #877 2025-09-11 13:57:24 +02:00
Laurent GAY
8b2f23f41e correct test for rss export - (Issue #1496) 2025-09-03 22:01:04 +02:00
Laurent GAY
3e4899c8e4 [Adminitration] Allow registrations: 3 modes = "close", "allowed", "moderate" - #877 2025-09-03 21:07:49 +02:00
Laurent GAY
357a842180 Correct search by location: bad radus distance sended (Issue #1821) 2025-08-05 18:26:02 +02:00
Laurent GAY
e69e149d00 replace joinmobilizon.org by mobilizon.org: correct tests using mobilizon.org resources (#1702) 2025-08-05 17:10:04 +02:00
Laurent GAY
9845b3a82d atom/ics link copy to clipboard: correct URL copied for notificationsview + correct events list (participated + owned) (Issuer #1496) 2025-08-05 16:16:26 +02:00
Laurent GAY
40339a8f5b replace joinmobilizon.org by mobilizon.org (#1702) 2025-08-01 18:15:14 +02:00
Laurent GAY
d2ce0de020 add event image in iCal export (#842) 2025-08-01 18:15:14 +02:00
Laurent GAY
289128dbdb Improvement of the RSS export with the addition of the image as a logo if it exists - Issue #1653 2025-07-11 10:48:06 +00:00
Laurent GAY
7f9bcbcb13 Correct elixir tests back-end link to actor refresh for new federation - issue #1776 2025-06-30 16:36:50 +02:00
Massedil
569d27f0b9 fix: Allow updating media in admin_settings_medias by UUID
Fixes #1769
2025-06-10 15:30:31 +02:00
Massedil
8bb6b0b97c refactor: Remove the registerPerson GraphQL query
- The first profile is now created after the user email validation
- NavBar is correctly updated when a user is connected but without any profile
- Always fetch identities from the server at login (no cache)
- NoIdentitiesException is thrown again
- Refactor EditIdentity to create the first profile
- Translations updated
- Tests updated

Fixes #1762
2025-05-27 11:18:21 +02:00
Massedil
a50681c9ac refactor(media): use UUID instead of ID for media retrieval in GraphQL
Fixes #1760
2025-05-27 11:18:21 +02:00
setop
255c8fda67 fix(back): event.ends_on can be nil 2024-12-06 15:57:53 +01:00
Massedil
71c0ce37a9 case harmonization with other fields
- longevents -> long_events (back-end)
- longevents -> longEvents (front-end)
2024-11-29 19:15:35 +01:00
setop
2a1f620121 fix(test): fix some tests 2024-11-23 21:36:35 +01:00
setop
abeeef6aa3 fix(tests): prepare for next version 2024-11-23 15:57:01 +01:00
Laurent GAY
0c56267795 test elixir correction 2024-11-06 18:43:24 +01:00
setop
563e7be0ed test(backent): workaround test gat_actor_by_name, assertion about pictures are failing 2024-08-21 09:00:26 +02:00
setop
f789fcd2ee test(backent): fix ActivityPub client mock 2024-08-20 21:59:40 +02:00
setop
7030d56864 all developments of milestone 1 2024-04-10 12:36:21 +00:00
Thomas Citharel
9d99684402 feat: allow to filter events by local-only
In addition to internal (self + federated) and global (global external search engine), introduce the
self possibility

Closes #1322

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-09 13:51:59 +01:00
Thomas Citharel
d1b1979ee5 test: deactivate assert_email_sending with timeout in LegacyNotifierBuilderTest for now
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-09 09:51:12 +01:00
Thomas Citharel
67314928e0 test(backend): fix legacy notifier test assert
We can't refute something right after asserting it before, unfortunately

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:52:03 +01:00
Thomas Citharel
ab3f5dfd27 feat(config): enable instance feeds by default
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:52:03 +01:00
Thomas Citharel
8a2e262474 test(graphql): fix getting event conversations test
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:23:22 +01:00
Thomas Citharel
77308a9477 test(notifications): fix testing email notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:23:22 +01:00
Thomas Citharel
0bd00de501 fix(backend): only send announcement event emails when the comment author has the right to do so
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:23:21 +01:00
Thomas Citharel
aa388a7a47 test(backend): private announcement notification jobs sends emails
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:23:21 +01:00
Thomas Citharel
43c6143ddf test(graphql): having several anonymous participants for an announcement adds anonymous actor once
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:23:21 +01:00
Thomas Citharel
681f8dcd04 test(graphql): add tests for sending private event announcements
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:23:21 +01:00
Thomas Citharel
c9a1c35aa7 fix(announcements): make sure only valid announcements are shown to the user
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 17:23:20 +01:00
André Menrath
0d7462de06 Improve the detection of a banner image.
- Also accept attachments of type Image
- Prefer the key "image" if it is set as the banner image (https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object)
- solves #1399

Co-authored-by: Thomas Citharel <tcit@tcit.fr>
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-02-08 16:55:35 +01:00
Thomas Citharel
d0835232d6 refactor(backend): change naming of function names to avoid the is_ prefix
Following Credo.Check.Readability.PredicateFunctionNames check

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-01-04 13:35:08 +01:00
Thomas Citharel
da3b074619 fix(nodeinfo): make sure we only process JSON content
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-01-03 18:33:13 +01:00
Thomas Citharel
99b2339424 feat(nodeinfo): extract and save NodeInfo information from instances to display it on instances list
We also try to detect the application actor if it's not given by NodeInfo metadata (FEP-2677)
(guessing for Mobilizon, PeerTube & Mastodon).

Closes #1392

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-21 10:45:56 +01:00
Thomas Citharel
64237cfc26 feat(activitypub): allow simple text for address field
Closes #1387

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-19 10:52:31 +01:00
Thomas Citharel
78d3e76e46 test(nodeinfo): add tests for Mobilizon.Federation.NodeInfo
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-19 10:01:20 +01:00
Thomas Citharel
f10977a99a feat(activitypub): implement FEP-2677 to identify the application actor used for federation
Instead of always assuming it will be @relay@host.tld

Closes #1367

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-14 16:31:58 +01:00
778a69cd
5030b755a0 fix: allow html_to_text to receive nil, e.g. for empty event descriptions
Fixes https://git.potsda.mn/potsda.mn/mobilizon/issues/34

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-11 09:42:06 +01:00
Thomas Citharel
09f41328ab fix(graphql): set default value for resource type parameter
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-06 14:43:51 +01:00
Thomas Citharel
58e50e3c9f test: add new tests for XSS in actors summary
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-06 11:19:19 +01:00
Thomas Citharel
ffff379d47 fix: always consider report content as text
Report content was used as HTML in front-end and e-mails but wasn't sanitized as such.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-06 11:05:56 +01:00
Thomas Citharel
5e8f9afb62 fix(activitypub): compact ical:status in activitystream data
Was kept for no other reason than disambiguation with https://schema.org/status, but no need if we
specify the correct alias in the context.

Keeps a fallback for older versions compatibility

Closes #1378

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-04 14:05:27 +01:00
Thomas Citharel
5fcf3d5267 test: fix tests using verified routes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-01 16:34:48 +01:00
Thomas Citharel
b315e1d7ff refactor: use Phoenix verified routes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-12-01 11:29:53 +01:00
Thomas Citharel
c731f0f084 test: fix tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-11-21 17:29:58 +01:00
Thomas Citharel
7ef85fe19b fix(announcements): load group announcements
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-11-20 17:35:37 +01:00