From 6c5e7750c23f7bf69bc4389a737372ef18022b3a Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 18 Dec 2019 15:17:11 +0100 Subject: [PATCH 1/5] Typo in docs Signed-off-by: Thomas Citharel --- docs/contribute/activity_pub.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contribute/activity_pub.md b/docs/contribute/activity_pub.md index 182927116..8f8b901ca 100644 --- a/docs/contribute/activity_pub.md +++ b/docs/contribute/activity_pub.md @@ -115,7 +115,7 @@ Example: #### location We use Schema.org's `location` property on `Event`. -[The ActivityStream vocabulary to represent places](https://www.w3.org/TR/activitystreams-vocabulary/#places) is quite limited so instead of just using `Place` from ActivityStreams we also a a few properties from Schema.org's `Place` vocabulary. +[The ActivityStream vocabulary to represent places](https://www.w3.org/TR/activitystreams-vocabulary/#places) is quite limited so instead of just using `Place` from ActivityStreams we also add a few properties from Schema.org's `Place` vocabulary. We add [an `address` property](https://schema.org/address), which we assume to be [of `PostalAddress` type](https://schema.org/PostalAddress). From 9485694392bff63a5d9e5e73b95cf6b18048115b Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 18 Dec 2019 15:57:15 +0100 Subject: [PATCH 2/5] Add a mix mobilizon.actors task to list actors tasks Signed-off-by: Thomas Citharel --- lib/mix/tasks/mobilizon/actors.ex | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/mix/tasks/mobilizon/actors.ex diff --git a/lib/mix/tasks/mobilizon/actors.ex b/lib/mix/tasks/mobilizon/actors.ex new file mode 100644 index 000000000..ec032daa2 --- /dev/null +++ b/lib/mix/tasks/mobilizon/actors.ex @@ -0,0 +1,14 @@ +defmodule Mix.Tasks.Mobilizon.Actors do + @moduledoc """ + Tasks to manage actors + """ + use Mix.Task + + @shortdoc "Manages Mobilizon actors" + + @impl Mix.Task + def run(_) do + Mix.shell().info("\nAvailable tasks:") + Mix.Tasks.Help.run(["--search", "mobilizon.actors."]) + end +end From d18620c368ea7e1cbae1f384d827b448db89c79e Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 18 Dec 2019 15:58:33 +0100 Subject: [PATCH 3/5] Added documentation for commands to manage users and view actors Signed-off-by: Thomas Citharel --- .../CLI tasks/maintenance_ tasks.md | 6 ++ .../administration/CLI tasks/manage_actors.md | 17 ++++++ docs/administration/CLI tasks/manage_users.md | 56 ++++++++++++++++++- docs/administration/CLI tasks/relay.md | 11 ++-- 4 files changed, 84 insertions(+), 6 deletions(-) create mode 100644 docs/administration/CLI tasks/manage_actors.md diff --git a/docs/administration/CLI tasks/maintenance_ tasks.md b/docs/administration/CLI tasks/maintenance_ tasks.md index 4bee7f466..241b77f11 100644 --- a/docs/administration/CLI tasks/maintenance_ tasks.md +++ b/docs/administration/CLI tasks/maintenance_ tasks.md @@ -30,6 +30,9 @@ mix mobilizon.instance gen [] ### move_participant_stats +!!! tip "Environment" + You need to run these commands with the appropriate environment loaded + Task to move participant stats directly on the `event` table (so there's no need to count event participants each time). This task should **only be run once** when migrating from `v1.0.0-beta.1` to `v1.0.0-beta.2`. @@ -41,6 +44,9 @@ mix mobilizon.move_participant_stats ### setup_search +!!! tip "Environment" + You need to run these commands with the appropriate environment loaded + Task to setup search for existing events. This task should **only be run once** when migrating from `v1.0.0-beta.1` to `v1.0.0-beta.2`. diff --git a/docs/administration/CLI tasks/manage_actors.md b/docs/administration/CLI tasks/manage_actors.md new file mode 100644 index 000000000..2ef74e03b --- /dev/null +++ b/docs/administration/CLI tasks/manage_actors.md @@ -0,0 +1,17 @@ +# Manage actors + +!!! tip "Environment" + You need to run these commands with the appropriate environment loaded + +## List all available commands +```bash +mix mobilizon.actors +``` + +## Show an actors details + +```bash +mix mobilizon.actors.show +``` + +In addition to basic informations, it also tells which user the profile belongs to, if local. \ No newline at end of file diff --git a/docs/administration/CLI tasks/manage_users.md b/docs/administration/CLI tasks/manage_users.md index 89bfb8f4e..c8b83f52c 100644 --- a/docs/administration/CLI tasks/manage_users.md +++ b/docs/administration/CLI tasks/manage_users.md @@ -1,4 +1,56 @@ # Manage users -!!! bug - Not yet existing +!!! tip "Environment" + You need to run these commands with the appropriate environment loaded + + +## List all available commands +```bash +mix mobilizon.users +``` + +## Create a new user + +```bash +mix mobilizon.users.new [] +``` + +### Options + +* `--password `/ `-p ` - the user's password. If this option is missing, a password will be generated randomly. +* `--moderator` - make the user a moderator +* `--admin` - make the user an admin + +## Show an user's details + +Displays if the user has confirmed their email, if they're a moderator or an admin and their profiles. + +```bash +mix mobilizon.users.show +``` + +## Modify an user + +```bash +mix mobilizon.users.modify +``` + +### Options + +* `--email ` - the user's new email +* `--password ` - the user's new password. +* `--user` - make the user a regular user +* `--moderator` - make the user a moderator +* `--admin` - make the user an admin +* `--enable` - enable the user +* `--disable` - disable the user + +## Delete an user + +```bash +mix mobilizon.users.delete +``` + +### Options + +* `--assume_yes`/`-y` Don't ask for confirmation \ No newline at end of file diff --git a/docs/administration/CLI tasks/relay.md b/docs/administration/CLI tasks/relay.md index 8c63f560c..68ef8b804 100644 --- a/docs/administration/CLI tasks/relay.md +++ b/docs/administration/CLI tasks/relay.md @@ -2,24 +2,27 @@ Manages remote relays +!!! tip "Environment" + You need to run these commands with the appropriate environment loaded + ## Make your instance follow a mobilizon instance ```bash -mix mobilizon.relay follow +mix mobilizon.relay follow ``` Example: ```bash -mix mobilizon.relay follow https://example.org/relay +mix mobilizon.relay follow example.org ``` ## Make your instance unfollow a mobilizon instance ```bash -mix mobilizon.relay unfollow +mix mobilizon.relay unfollow ``` Example: ```bash -mix mobilizon.relay unfollow https://example.org/relay +mix mobilizon.relay unfollow example.org ``` From 8e979d9048f075c05b78cbfb229783b9b786a4a9 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 18 Dec 2019 16:15:28 +0100 Subject: [PATCH 4/5] Update changelog Signed-off-by: Thomas Citharel --- CHANGELOG.md | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9720cbfb1..013599eeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [1.0.0-beta.2] - 2019-12-18 ### Special operations These two operations couldn't be handled during migrations. @@ -18,18 +18,27 @@ In order to move participant stats to the event table for existing events, you n * `mix mobilizon.move_participant_stats` ### Added +- Federation is active +- Added an interface for admins to view and manage instance followers and followings +- Ability to comment below events - Implement search engine & service in backend **(read special instructions above)** - Allow WebP and Gif pics upload - Optimize uploaded pics - Make tags clickable, redirecting to search +- Added a websocket API call to check if your participation status has changed - Add a different welcome message when coming from registration - Link to participation page from event page when you are an organizer -- Added mix commands to manage users and view actors -- Added a demo mode to show or hide instance warnings that data is deleted -- Added a warning on login that everything is deleted regularly +- Added several mix commands to manage users and view actors (`mix mobilizon.users` and `mix mobilizon.actors`) and their documentation +- Added a demo mode to show or hide instance warning +- Added a config option to whitelist users emails or email domains - Updated Occitan translations (Quentin) -- Updated French translations (Gavy, Zilverspar, ty kayn) -- Updated Swedish translations (Anton Strömkvist) +- Updated French translations (Gavy, Zilverspar, ty kayn, numéro6) +- Updated Swedish translations (Anton Strömkvist, Filip Bengtsson) +- Updated Polish translations (Marcin Mikolajczak) +- Updated Italian translations (AlessiBilos) +- Updated Arabic translations (Butterflyoffire) +- Updated Catalan translations (fadelkon, Francesc) +- Updated Belarusian translations (fadelkon) - Upgraded frontend and backend dependencies ### Changed @@ -42,11 +51,16 @@ In order to move participant stats to the event table for existing events, you n - Upgrade vue-cli to v4, change the way server params injection is made - Improve some production ipv6 configuration - Limited year range in the DatePicker +- Event title is now clickable on cards (Léo Mouyna) +- Also consider the PeerTube `CommentsEnabled` property to know if you can reply to an event ### Fixed - Fix event URL validation and check if hostname is correct before showing it - Fix participations stats on the MyEvents page - Fix event description lists margin +- Clear errors on resend password page (Léo Mouyna) +- End datetime being able to happen before begin datetime (Léo Mouyna) +- Fix issue when activating/deactivating limited places (Léo Mouyna) - Fix Cypress tests - Fix contribution guide link and improve contribution guide (Joel Takvorian) - Improve grammar (Damien) @@ -55,11 +69,19 @@ In order to move participant stats to the event table for existing events, you n - Add polyfill for IntersectionObserver so that it's usable on relatively old browsers - Fixed crash on Safari on description input by removing `-apple-system` from font-family - Improve installation docs (mkljczk) +- Fixed links to contributing and docs (Alex Addams) - Limit file uploads to 10MB - Added missing `setup_db.psql` file (Geno) - Fixed docker setup when using non-GNU make (JohanBaskovec) - Fixed actors deletion that didn't cascade to followers - Reduced datetime picker input width +- Clear ActivityPub cache when content is updated or deleted +- Fix HTTP signatures not checked for relay inbox +- Handle actor or object being AP Public string (for Mastodon relay subscriptions) +- Fixed Mastodon relay instances subscriptions being shown as users +- Fixed an issue when accessing "My Account" +- Fixed pagination for followers/followings page +- Fixed event HTML representation when `GET` request has no `Accept` header ### Security - Sanitize event title to avoid XSS From 695c6a72a4a41137d85392b58041c00694b89d85 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 18 Dec 2019 16:15:44 +0100 Subject: [PATCH 5/5] Update version Signed-off-by: Thomas Citharel --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 0090f764a..18e769ea7 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Mobilizon.Mixfile do use Mix.Project - @version "1.0.0-beta.1" + @version "1.0.0-beta.2" def project do [