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
26cf892758
Revert "Merge branch 'external-events' into 'main'"
...
This reverts merge request !1223
2022-05-04 07:02:16 +00:00
Luca Eichler
75502e2a4b
Add option to link an external registration provider for events
2022-05-03 15:33: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
fea97f3713
Fix creating an mz activity when updating an event with some subfields
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-15 11:03:06 +01:00
Thomas Citharel
afff01d6d2
Set an event UUID if default is nil
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-10 20:44:51 +01:00
Thomas Citharel
b5d9b82bdd
Refactor Mobilizon.Federation.ActivityPub and add typespecs
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-09-29 16:31:11 +02:00
Thomas Citharel
1893d9f55b
Various refactoring and typespec improvements
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-09-26 17:52:24 +02:00
Thomas Citharel
de047c8939
Various typespec and compilation improvements
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-09-26 17:52:20 +02:00
Thomas Citharel
d577b07c6e
Introduce event language detection
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-08-20 18:01:29 +02:00
Thomas Citharel
7c9b76765f
Cleanup
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-08-20 18:00:21 +02:00
Thomas Citharel
5f3d1f89df
Allow to add metadata to an event
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-08-09 16:16:14 +02:00
Thomas Citharel
6066a44ae8
Change can_be_managed_by/2
to can_be_managed_by?/2
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-08-01 10:51:20 +02:00
Thomas Citharel
a24e08a6de
Add blurhash support to backend
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-10 15:18:08 +02:00
Thomas Citharel
c9457fe0d3
Track usage of media files and add a job to clean them
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-11-26 17:53:33 +01:00
Thomas Citharel
49a5725da3
Improve and activate groups
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-09-29 10:25:00 +02:00
Thomas Citharel
9c9f1385fb
Introduce group posts
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-07-30 16:55:35 +02:00
Thomas Citharel
4144e9ffd0
Introduce group basic federation, event new page and notifications
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-03 16:01:26 +02:00
Thomas Citharel
fa19270232
Fix DateTime comparison
...
!420 used Date.compare/2 instead of DateTime.compare/2
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-04-14 17:50:17 +02:00
setop
01bdd7b344
fix compare begin and end dates
...
this bug prevent from creating an event with the day of month of the begin date greater than the day of month of the end date, event if end date is effectively greater than begin date.
for example, if the begin date is '2020-04-28' and end date is '2020-05-13', these dates are valid but because 28 > 13, the validation fails.
this is better explained in this article ["Never compare dates in Elixir using < or >"](https://blog.leif.io/never-use-to-compare-dates/ ).
using Date.compare, as proposed in this PR fix the issue.
2020-04-03 23:37:56 +02:00
rustra
3505736705
Fix Credo code readability issues
2020-01-28 20:15:59 +01:00
rustra
8856cc2f55
Rename MobilizonWeb to Mobilizon.Web
2020-01-26 21:39:49 +01:00
Thomas Citharel
334d66bf5d
Add admin interface to manage instances subscriptions
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-12-15 21:56:16 +01:00
Thomas Citharel
dc07f34d78
Introduce comments below events
...
Also add tomstones
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-28 12:33:58 +01:00
Thomas Citharel
634a0b851e
Validate ends_on being after begins_on
...
Closes #315
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-18 18:56:36 +01:00
Thomas Citharel
c599a47d58
Introduce Mimirsbrunn geocoder and improve addresses & maps
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-12 14:10:18 +01:00
Thomas Citharel
33f7c14db6
Fixes with addresses and iCalendar
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-06 10:04:17 +01:00
Thomas Citharel
f91f8ab926
Fix for adding addresses
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-06 09:32:01 +01:00
Thomas Citharel
95ba76a0fa
Fix issue when updating event and introduce background jobs
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-04 16:40:36 +01:00
Thomas Citharel
cc820d6b63
Refactor Core things, including Ecto handling, ActivityPub & Transmogrifier modules
...
* Data doesn't need anymore to be converted to ActivityStream format to
be saved (this was taken from Pleroma and not at all a good idea here)
* Everything saved when creating an event is inserted into PostgreSQL in
a single transaction
2019-10-31 10:06:11 +01:00
Thomas Citharel
342506bac0
Add some backend changes and validation for field length
...
Closes #225 and #226
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-18 11:31:11 +02:00
Thomas Citharel
442a011490
Add draft feature
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-02 18:23:32 +02:00
miffigriffi
aed824f1aa
Fix code readability issues
2019-09-26 17:45:47 +02:00
Thomas Citharel
abf3a58657
Allow to accept / reject participants
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-22 10:40:12 +02:00
miffigriffy
5967b30bb1
Clean specs
2019-09-13 02:15:04 +02:00
miffigriffy
e358dcce77
Refactoring of Events context
2019-09-13 01:01:17 +02:00
Thomas Citharel
f5c3dbf128
Correctly handle event update
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-05 13:59:52 +02:00
Thomas Citharel
cb96b807a0
Improve event creation form by introducting EventOptions
...
It's a subentity that holds additional metadata in a map database type
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-02 17:11:27 +02:00
Thomas Citharel
8f31beb0fb
Make category optionnal and hide it from the form
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-08-13 11:15:19 +02:00
Thomas Citharel
5fbaf42cad
Add address input and refactor federation stuff
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-07-30 10:35:29 +02:00
Thomas Citharel
6d80bf43ea
Refactor adding tags to an event
...
Also refactor extracting tags from content, now uses Pleroma's Formatter
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-07-26 12:06:26 +02:00
Thomas Citharel
f90089e1bf
Refactor media upload
...
Use Upload Media logic from Pleroma
Backend changes for picture upload
Move AS <-> Model conversion to separate module
Front changes
Downgrade apollo-client: https://github.com/Akryum/vue-apollo/issues/577
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-05-24 17:29:51 +02:00
Thomas Citharel
ddad462076
Add description slug field for events
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-11 14:45:31 +02:00
Thomas Citharel
7086fe8389
Make Categories a predefined list
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Allow null values for categories for now
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-25 15:31:04 +01:00
Thomas Citharel
256d50e855
Allow tag relations + bump ecto deps
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-21 16:58:14 +01:00
Thomas Citharel
a2070b1d54
Split event visibility and join options
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Fix tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Fix format
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-07 11:49:14 +01:00
Chocobozzz
dd174f2446
Add ability to delete an event
2019-01-25 17:07:36 +01:00
Thomas Citharel
90fd0ff6b6
Replace Vuetify with Bulma
...
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Remove vuetify and add Bulma
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-24 15:35:57 +01:00
Thomas Citharel
289ba03960
Remove address_type and rename phone to phone_address
...
An event can indeed have several address types
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 17:48:08 +01:00
Thomas Citharel
ab56d3e607
🔍 Implement basic event visibility
...
See https://framagit.org/framasoft/mobilizon/wikis/spec/Event#visibility
Also brings support for event status (tentative/confirmed/cancelled)
Closes #56
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 15:56:07 +01:00