778a69cd
4284e8e635
Merge remote-tracking branch 'origin/main'
2023-05-24 13:00:37 +02:00
Hugo Renard
c4d60194a6
fix: include user role in moderator role
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-23 17:38:11 +02:00
778a69cd
7127b0da28
Merge remote-tracking branch 'origin/main'
2023-05-17 17:51:20 +02:00
Thomas Citharel
1c1d0d47d7
fix(back): Improve error message when requesting reset passwords and new instructions
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 11:33:50 +02:00
Thomas Citharel
73eb4603b1
fix(password-reset): Lower time before being available to reset password or resend instructions
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 09:45:44 +02:00
Thomas Citharel
8ea00e7c18
fix(back): Replace NaiveDateTime uses with DateTime for consistency
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 09:34:05 +02:00
Thomas Citharel
aa20f69911
fix(apps): Fix cleaning application data background job
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 09:34:05 +02:00
Thomas Citharel
b5f106b0a8
fix(backend): Ignore group mentions for now
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 09:34:04 +02:00
Thomas Citharel
dbe2da79c3
fix(backend): Handle CLDR data having no standard property for a language
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 09:34:04 +02:00
Thomas Citharel
79b48da222
fix(federation): Account suspension should use actor in question as author and not relay actor
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 09:34:04 +02:00
Thomas Citharel
2a57340a82
fix(back): Various small fixes in backend
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 09:34:03 +02:00
Thomas Citharel
a22a5e3cb9
fix(auth): Handle logging-in with disabled auth provider
...
When only MobilizonAuthenticator provider is available, user can be found, but isn't valid for auth. We need to reject those users as well.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-05-17 09:34:02 +02:00
778a69cd
cc89e9f98e
Merge branch 'potsda.mn-3.0.4'
2023-05-16 20:41:30 +02:00
778a69cd
d2af20dd59
show events until their end time, unless they have no end time
2023-05-16 17:32:47 +02:00
778a69cd
aa043d8793
fix wrong link in instance follow request email
...
this is upstreamable
2023-05-16 17:32:47 +02:00
778a69cd
23378a378a
add Mobilizon version to instance config
2023-05-16 17:32:47 +02:00
778a69cd
d53f7b93e9
Use our own categories for event creation
2023-05-16 17:32:47 +02:00
Thomas Citharel
d969c6648f
fix(follow-instances): Show correct error message when trying to follow already following actor
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-26 16:40:40 +02:00
Thomas Citharel
a4e7ee37be
fix(search): Fix event search order
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-26 16:39:18 +02:00
Thomas Citharel
2043c98717
fix(typespec): Fix missing return type in typespec
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-21 14:28:33 +02:00
Thomas Citharel
63c9ed62de
fix(front): Fix event list month order
...
Closes #1244
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-21 10:18:22 +02:00
Thomas Citharel
f3a443138a
fix(feeds): Only provide future events in ICS/Atom feeds
...
Closes #1246
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-20 11:30:34 +02:00
Thomas Citharel
eda2761032
refactor(credo): Refactor to appease new credo checks (complexity and logging)
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-19 18:33:06 +02:00
Thomas Citharel
8141bb0acb
feat(global-search): Add option values in debug log before calling global search service
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-19 12:14:03 +02:00
Thomas Citharel
bcf6fd893c
fix(backend): Fix Mobilizon.Events.list_participations_for_user_query/1
...
Multiple on: following two join: declarations were not taken into account
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-04-19 12:00:40 +02:00
Thomas Citharel
c07ba3a5d1
Add rate-limiting on queries with Hammer
...
Closes #67
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-24 15:32:27 +01:00
Thomas Citharel
c4e9f88e85
Fix front-end stuff
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-24 15:32:26 +01:00
Thomas Citharel
986ae45f52
Add worker to clean obsolete application data, token revokation and spec conformance
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-24 09:18:53 +01:00
Thomas Citharel
59944603b7
Update deps and fix some front-end stuff
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-22 10:19:25 +01:00
Thomas Citharel
8984bd7636
Introduce authorizations with Rajska
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-22 10:19:25 +01:00
Thomas Citharel
b6875f6a4b
Introduce device flow
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-22 09:34:11 +01:00
Thomas Citharel
2ee329ff7b
Introduce application tokens
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-22 09:34:10 +01:00
Thomas Citharel
cfa1754ab5
Fix warnings in akismet service
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-22 09:34:09 +01:00
ljf
48ebdbb03a
[fix] LDAP connector with erland 24.3+
2023-03-20 12:26:06 +01:00
Thomas Citharel
317a3434b2
feat(spam): Introduce checking new accounts, events & comments for spam with the help of Akismet
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-02-07 15:18:29 +01:00
Thomas Citharel
1db5c4ae2d
Save IP and login date from directly registered accounts
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-01-31 19:33:33 +01:00
Thomas Citharel
5c43713d85
Forgot call to clear_feeds_cache
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-01-31 15:22:22 +01:00
Thomas Citharel
f531c39b7e
Make sure every cache is properly cleared when managing an event
...
Closes #1252
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-01-28 17:37:20 +01:00
Thomas Citharel
92d7de51d0
Add debug logging to locale
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-01-28 17:37:20 +01:00
Thomas Citharel
7e49a80df9
Fix formatting
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-01-16 10:08:32 +01:00
ljf
ae05832cb5
[fix] LDAP connector with erland 24.3+
2023-01-16 10:06:53 +01:00
Thomas Citharel
8e7907ec9e
Don't notify group members & followers from new draft event
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-22 12:21:42 +01:00
Thomas Citharel
aeaf22a224
Set correct Content-Type on all AP endpoints
...
Closes #1210
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-22 12:21:42 +01:00
Thomas Citharel
2e9414767c
Increase paging timeout to 30
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-22 12:21:42 +01:00
Thomas Citharel
3e15048843
Prevent AP collection page number being < 1
...
Closes #1184
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-21 16:57:54 +01:00
MickGe
e1469a5eec
Fix: Assets in production environment
...
Closes #1197
2022-11-21 11:53:23 +01:00
Thomas Citharel
035ff134f5
Properly log if we can't notify group follower
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-07 19:44:16 +01:00
Thomas Citharel
16b1e0080c
Add fallback handler for can_send_activity?
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-07 19:37:59 +01:00
Thomas Citharel
af3110955d
Handle suspending actors with special type
...
Closes #1183
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-07 19:37:59 +01:00
Thomas Citharel
bb86ca5413
Handle :http_not_found as an error when deleting an object
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-07 19:37:59 +01:00
Thomas Citharel
7b2eb82d6f
Handle nothing found by unsplash for location
...
Closes #1187
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-07 19:37:59 +01:00
Thomas Citharel
1f23bb421e
Increase timeout needed to build page
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-07 18:55:49 +01:00
Thomas Citharel
67b63a9a6e
Fix ecto dev warning
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-07 09:02:09 +01:00
Thomas Citharel
e7e4ed2ac9
Add Ecto.DevLogger in dev mode
...
See https://github.com/fuelen/ecto_dev_logger
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-06 16:56:04 +01:00
Thomas Citharel
96ba48cdb0
Handle error when fetching object from tombstone
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-06 15:29:34 +01:00
Thomas Citharel
994797c475
Fix front-end analytics csp config
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-06 15:14:04 +01:00
Thomas Citharel
30b0d3ca08
Add GraphQL operation name, user ID and actor name in logs
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-06 13:03:53 +01:00
Thomas Citharel
de8433cdbb
Add error details in error logging in Activity Update handler
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-06 11:33:09 +01:00
Thomas Citharel
a51b36fb75
Fix building CSP policy
...
You can't use 'none' as a CSP Policy if there's other things among
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-04 16:47:24 +01:00
Thomas Citharel
e31433cf83
Allow for resource providers to register a csp policy
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-04 11:50:15 +01:00
Thomas Citharel
57fac37347
Support CSP report_uri, report_to and the Report-To and Reporting-Endpoints headers
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-04 10:55:26 +01:00
Thomas Citharel
e97206077c
Add CSP Policy for pictures
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-04 09:26:45 +01:00
Thomas Citharel
6058da0d44
Propertly handle other errors when receiving a comment
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-03 18:11:40 +01:00
Thomas Citharel
4bb90ebb3f
Properly handle replying to an event that has been deleted
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-03 18:02:32 +01:00
Thomas Citharel
770a518ad1
Properly handle un-needed background jobs
...
Cancel them if they're not needed
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-03 18:00:42 +01:00
Thomas Citharel
c68c0c2120
Add context to error when removing an upload file following actor suspension
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-03 17:56:45 +01:00
Thomas Citharel
d75a95cccd
Lower loglevel of resource insertion error
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-03 16:54:04 +01:00
Thomas Citharel
62dd1b85b7
Don't treat notification for a deleted event as an error
...
Just cancel the job
Closes #1180
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-03 09:50:33 +01:00
Thomas Citharel
4dede63b83
Remove unused variable
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-02 18:32:30 +01:00
Thomas Citharel
02381f2820
Fix deleting person detached from user
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-02 17:14:26 +01:00
Thomas Citharel
75296498c4
Do not list drafts in upcoming / old events event if moderator
...
Closes #1086
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-02 17:12:35 +01:00
Thomas Citharel
dcfe87116e
Allow to view more than 10 drafts events on my events view
...
Closes #993
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-02 11:38:14 +01:00
Thomas Citharel
a1726fc12e
Add sha-256 hash for toggling dark theme code and remove inlined phoenix digest
...
Follow-up to !1300
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-02 11:36:32 +01:00
Thomas Citharel
9a135bb67f
Add unique constraint on event URL
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-31 18:07:49 +01:00
Thomas Citharel
2e631d3633
Lower loglevel of error when creating a new person
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-31 18:07:28 +01:00
Thomas Citharel
470a3e594b
Correctly escape user-defined names in emails
...
Closes #1151
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-31 14:30:40 +01:00
Thomas Citharel
9ce618a267
Add an error log when we try to update the relay actor
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-31 11:42:51 +01:00
Thomas Citharel
2bf8148951
Fix fetching events with addresses that's not objects
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-28 19:13:13 +02:00
Thomas Citharel
579bcaba06
Allow to disable non-SSO login
...
With a new disable_database_login parameter under :mobilizon, :instance
Closes #1154
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-28 17:41:49 +02:00
Thomas Citharel
e420713a6f
Add setting to toggle light/dark mode
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-28 17:41:49 +02:00
Thomas Citharel
8761556bac
Add logging for when cached iCalendar feed data can't be found
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-28 09:58:36 +02:00
Thomas Citharel
2454fe2aa4
Fix leaving a group
...
There's still an issue because the call is made twice, but at least it
works
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-26 18:45:47 +02:00
Thomas Citharel
5225431d60
Add distinct clause to search events
...
Closes #1174
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-25 19:04:37 +02:00
Thomas Citharel
f0c1444be3
Merge branch 'lowercase-users-emails-when-resetting' into 'main'
...
Always lowercase the emails before trying to reset password
See merge request framasoft/mobilizon!1295
2022-10-18 17:07:36 +00:00
Thomas Citharel
c9fffca046
Always lowercase the emails before trying to reset password
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-18 18:37:39 +02:00
Thomas Citharel
ad0fc61994
Remove obscure reference to Douglas Adams
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-18 16:26:17 +02:00
Thomas Citharel
5bce26980a
Fix: Don't start mobilizon server when running migrations
...
Closes #1126 #1166 #743
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-13 11:59:36 +02:00
Thomas Citharel
699465199e
Lint fixes
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-12 19:30:34 +02:00
Thomas Citharel
c051e26380
Fix getting categories from global search engine
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-12 19:19:20 +02:00
Thomas Citharel
76ff11ceae
Don't add empty search parameters to global search engine
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-12 19:19:20 +02:00
Thomas Citharel
74581912f3
Only preload svg shapes on homepage
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-11 18:45:33 +02:00
Thomas Citharel
b514d417c0
Add typespec for category_statistics
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-11 14:58:55 +02:00
Thomas Citharel
0d6626d55a
Merge branch 'search-fixes' into 'main'
...
Fix global search term
See merge request framasoft/mobilizon!1281
2022-10-06 08:39:37 +00:00
Thomas Citharel
200e4d2c56
Merge branch 'handle-categories-from-global-search' into 'main'
...
Handle unknown categories from global search
See merge request framasoft/mobilizon!1280
2022-10-06 08:10:05 +00:00
Thomas Citharel
1a31d9b54e
Fix global search term
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-06 09:53:54 +02:00
Thomas Citharel
0758995ac7
Handle unknown categories from global search
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-06 09:32:47 +02:00
Thomas Citharel
c080795955
Reconfigure plug at runtime with env
...
Closes #1165
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-06 08:59:50 +02:00
Thomas Citharel
620008ee0d
Fix group location edition
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-05 18:17:11 +02:00
Thomas Citharel
fee4f9add8
Fix address selector
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-05 17:54:04 +02:00
Thomas Citharel
456e987af8
Performance improvements
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-05 13:18:38 +02:00
Thomas Citharel
5055bd4adc
Consider the events from the same organizer actor or group in first
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-03 19:45:29 +02:00
Thomas Citharel
1601153062
Add all proper filters for related events
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-03 19:33:54 +02:00
Thomas Citharel
f0c8fa2525
Handle events with no physical location
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-03 19:26:35 +02:00
Thomas Citharel
4f1465e84d
Add distinct on suggested events
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-03 14:37:14 +02:00
Thomas Citharel
ca9826e299
Improve related events
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-10-03 14:02:25 +02:00
Thomas Citharel
8915a5caad
Fix Sentry registration
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-27 18:19:01 +02:00
Thomas Citharel
1087e19ee5
Enable E2E tests in CI
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-27 13:43:09 +02:00
Thomas Citharel
6f7d5f649b
Add participant info in event search results
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-26 10:29:58 +02:00
Thomas Citharel
a37bab3b84
Fix some Dializer issue
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-26 10:29:58 +02:00
Thomas Citharel
530539c631
Make sure instance list is refreshed before notifying admin from new
...
instance follow
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-26 10:20:51 +02:00
Thomas Citharel
88b4f98c41
Make sure session cookie salt in AuthController is loaded dynamically
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-21 10:16:07 +02:00
Thomas Citharel
6675c62d94
Add unplug to dynamically load plugs
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-21 10:15:47 +02:00
Thomas Citharel
d2372d5700
fixup! Fix depreciated calls of fetch_env!/2 and get_env/2
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-21 10:15:28 +02:00
Thomas Citharel
009f90e0d7
Fix typo in subtemplate
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-21 08:55:14 +02:00
Thomas Citharel
bbbaa81a6e
Fix depreciated calls of fetch_env!/2 and get_env/2
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-21 08:53:50 +02:00
Thomas Citharel
6a9fba7db8
Fix tests for CI
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-21 08:32:42 +02:00
Thomas Citharel
151a7e54ae
Fix lint issues, update deps
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-20 17:06:42 +02:00
Thomas Citharel
86ca52c2cb
Precompile latin to arab ICU transliterations
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-19 09:19:28 +02:00
Thomas Citharel
eecb04516e
Add the map in search view
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-09-01 10:00:17 +02:00
Thomas Citharel
07b2447a07
Add missing case for :member_approved in email member activity
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-28 10:53:52 +02:00
Thomas Citharel
0e7ff25333
Fix a preload issue with actor suspension
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-28 10:52:44 +02:00
Thomas Citharel
4db13046b7
Provide an accept CSP policy for global search pictures
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-28 10:02:06 +02:00
Thomas Citharel
8812122168
Only consider relevant events for category statistics
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-28 10:02:06 +02:00
Thomas Citharel
ce38361d65
Remove duplicate key in struct
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-28 10:02:06 +02:00
Thomas Citharel
48935e2168
Add global search
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-28 10:02:06 +02:00
Thomas Citharel
bfc936f57c
[JSON-LD] Only render single location when list has only one element
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-23 10:09:10 +02:00
Thomas Citharel
e07f88277b
Use correct IP
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-22 12:19:14 +02:00
Thomas Citharel
baac00f678
Improve search
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-22 12:12:09 +02:00
Thomas Citharel
ee20e03cc2
Migrate to Vue 3 and Vite
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-11 16:46:31 +02:00
Thomas Citharel
6aba0af3ec
Run mix format after deps update
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-06-17 10:48:12 +02:00
Thomas Citharel
4213e1f1ec
Send activity recap emails outside of the transaction
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-11 11:24:20 +02:00
Thomas Citharel
c05243f839
Add more logging to send_activity_recap_worker
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-11 09:47:18 +02:00
Thomas Citharel
123eee675a
Fix links to group page in group membership emails and participation
...
card
Closes #1077
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-10 13:41:02 +02:00
Thomas Citharel
46236dbe1d
Fix group notification of new event being sent multiple times
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-10 13:15:12 +02:00
Thomas Citharel
1eb111f52f
Make sure activity notification recaps can't be sent multiple times
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-10 13:15:11 +02:00
Thomas Citharel
3fea2d0395
Allow is_delay_ok_since_last_notification_sent? to have the delay as
...
param
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-10 13:15:11 +02:00
Thomas Citharel
44b2ca26bd
Merge branch 'fixes' into 'main'
...
Add a CLI command to delete actors
See merge request framasoft/mobilizon!1237
2022-05-09 16:57:27 +00:00
Thomas Citharel
5bc63185fd
Add a CLI command to delete actors
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-09 18:27:51 +02:00
Thomas Citharel
071185204e
Fix a comment
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-09 18:27:29 +02:00
Thomas Citharel
5bc9245dce
Make sure prompt show the correct message and not just "Continue?" in
...
mix mode
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-09 18:27:05 +02:00
Henri Febleux
5b4e6ed473
Add description field to address representation
...
Fixes : #1096
2022-05-07 18:28:32 +02:00
Thomas Citharel
7a6a013d93
Make sure users can't create profiles or groups with non-valid patterns
...
Closes #1068
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-06 20:01:05 +02:00
Thomas Citharel
3b8b150d48
Make sure activity recipient can't be nil
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-06 17:51:54 +02:00
Thomas Citharel
888d2ef4b8
Expose correct relay address in federation
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-06 17:21:11 +02:00
Thomas Citharel
3982977121
Allow to get Mastodon instance relays
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-06 16:59:28 +02:00
Thomas Citharel
0b49021f8b
Fix admin notification e-mails from instance follow for Mastodon
...
instances
Show an appropriate name in the body of the mail
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-06 16:36:04 +02:00
Thomas Citharel
05724476aa
Remove unused addRelay mutation
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-06 14:23:16 +02:00
Thomas Citharel
cd3d0c5fc4
Add a proper error message when adding an instance that doesn't respond
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-06 14:23:16 +02:00
Thomas Citharel
26cf892758
Revert "Merge branch 'external-events' into 'main'"
...
This reverts merge request !1223
2022-05-04 07:02:16 +00:00
Thomas Citharel
d85f708c37
Merge branch 'external-events' into 'main'
...
Add option to link an external registration provider for events
See merge request framasoft/mobilizon!1223
2022-05-04 07:01:53 +00:00
Thomas Citharel
87214b038f
Add appropriate timeouts for Repo.transactions
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-04 08:21:15 +02:00
Luca Eichler
75502e2a4b
Add option to link an external registration provider for events
2022-05-03 15:33:32 +02:00
Thomas Citharel
63a23748ac
Improve test coverage
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-03 12:58:07 +02:00
Thomas Citharel
999a33c7c3
Typespec fixes and refactoring
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-03 12:23:09 +02:00
Thomas Citharel
f6a17d8b3a
Improve a guard
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-03 11:41:17 +02:00
Thomas Citharel
a18c4daf4c
Avoid using actor id from config cache
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-03 11:40:16 +02:00
Thomas Citharel
1299b3baf1
CAS Auth Fixes
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-02 14:40:17 +02:00
Thomas Citharel
bf7ebfd989
Test refreshing instances does not update self relay actor
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-02 13:15:14 +02:00
Thomas Citharel
a4cc566ee7
Fix some typespecs
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-02 12:08:00 +02:00
Thomas Citharel
926dd01272
Send push notification into own task
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-02 12:07:21 +02:00
Thomas Citharel
d87261a6fb
Fix lint after merge
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-02 09:04:57 +02:00
Thomas Citharel
93805dca11
Merge branch 'setop-main-patch-92671' into 'main'
...
include ongoing events in search
Closes #729
See merge request framasoft/mobilizon!1171
2022-05-02 06:48:16 +00:00
setop
f071f70d1f
include ongoing events in search
2022-05-02 06:48:15 +00:00
Thomas Citharel
c91e8f6bf3
Fix being an administrator when using 3rd-party auth provider
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-28 11:59:24 +02:00
Thomas Citharel
f997f573ba
Use a session for state parameter in Ueberauth callback controller
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-28 11:59:24 +02:00
Thomas Citharel
ce6a25048c
Add missing "relay@" part of federated address to follow
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-24 17:52:46 +02:00
Thomas Citharel
030a149a61
Merge branch 'fixes' into 'main'
...
Improve actor cards integration
See merge request framasoft/mobilizon!1216
2022-04-22 10:38:42 +00:00
Thomas Citharel
e4a22bdb83
Fix latest group not refreshing in admin section
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-22 12:04:05 +02:00
Thomas Citharel
279badb2bf
Refactor Mobilizon.Federation.ActivityPub.Types.Events tags handling
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-21 17:31:47 +02:00
Thomas Citharel
7b3ce8d812
Avoid duplicate tags with different casing
...
Closes #562
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-21 17:13:21 +02:00
Thomas Citharel
ca860273a0
Exclude tags with more than 40 characters from being extracted.
...
They are still in the HTML produced
Closes #562
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-21 17:13:20 +02:00
Thomas Citharel
0c49ddc65b
Add "Accept-Language" header to sentry request metadata
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-21 10:33:42 +02:00
Thomas Citharel
74cece5796
Preload user.activity_settings to as it's being used after
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-21 10:21:05 +02:00
Thomas Citharel
b79f918d51
Correct a @moduledoc
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 19:15:33 +02:00
Thomas Citharel
3f32b3409f
Increase task timeout in Refresher to 60 seconds
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 18:47:31 +02:00
Thomas Citharel
74eeaccdc6
Allow webfinger to be fetched over http (not https) in dev mode
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 18:38:03 +02:00
Thomas Citharel
7c8de2b87f
Fix rejecting instance follow
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 18:35:38 +02:00
Thomas Citharel
f6ac72f08d
Allow instance to have non-standard ports
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 18:35:18 +02:00
Thomas Citharel
409439a916
Make sure we can't refresh the local instance
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 16:18:11 +02:00
Thomas Citharel
28f5cdd03a
Handle webfinger JSON data being invalid format
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 16:18:10 +02:00
Thomas Citharel
0ebb797740
Directly delete an object if the actor is itself
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 16:18:10 +02:00
Thomas Citharel
00f4c0b02c
Make sure remote Update activities can't affect local actors other than
...
Groups
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 16:18:10 +02:00
Thomas Citharel
4b869a6015
Make some functions private in Mobilizon.Federation.ActivityPub.Utils
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 16:18:09 +02:00
Thomas Citharel
df8721670a
Add a comment about why we don't sign object fetches when refetching actor keys
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 16:18:09 +02:00
Thomas Citharel
852be15a3e
Eventually fetch actors in mentions
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 16:18:08 +02:00
Thomas Citharel
14545fd983
Add proper fallback for when a TZ isn't registered
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 16:18:08 +02:00
Thomas Citharel
f5791d1413
Debug log mentions in text to be processed
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 09:03:15 +02:00
Thomas Citharel
48d17c122d
Fix an issue with no default timezone
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 09:03:14 +02:00
Thomas Citharel
d7aa432cca
Fix receiving Flag activities on federated events
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-20 09:03:14 +02:00
Thomas Citharel
0b04980332
Remove Koena Connect button
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-18 15:01:32 +02:00
Thomas Citharel
83f2880dd9
Fix some typespecs
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-18 14:47:44 +02:00
Thomas Citharel
7a18d0b2bb
Fix ex_docs warnings
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-07 18:51:10 +02:00
setop
38579d9dc2
add search box to filter addresses quickly
2022-04-07 10:51:30 +02:00
Thomas Citharel
4f92add78d
Format LiveView templates after adding the LiveView formatter plugin
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-07 10:33:11 +02:00
Thomas Citharel
e3adc0684f
Make FrontEndAnalytics provide CSP configuration
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-06 19:56:09 +02:00
Thomas Citharel
da2254089c
Make sure suspended actors are not in the AP cache anymore
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-06 16:54:00 +02:00
Thomas Citharel
501e0d12e4
Properly fallback to MEETING category if category is not in the
...
allowlist
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-06 14:42:01 +02:00
Thomas Citharel
709d26735b
Provide analytics on Front-end
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-06 12:31:46 +02:00
Thomas Citharel
cb1e41d90d
Remove unused variable
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-05 14:10:21 +02:00
Thomas Citharel
4b9a38b2a7
Merge branch 'email-spam' into 'main'
...
Move mailer from Bamboo to Swoosh
Closes #491
See merge request framasoft/mobilizon!1203
2022-04-05 11:21:24 +00:00