Commit Graph

1839 Commits

Author SHA1 Message Date
Bat
06d590ff3b Make form errors i18nalizable 2018-07-07 22:57:53 +02:00
Bat
3775d3a9c9 HTML validation + Actually associate messages to errors + Fix inverted behavior on new blog and post form 2018-07-07 22:51:48 +02:00
Bat
e5c1b3259d Make LoginForm serializable 2018-07-06 21:59:17 +02:00
Bat
5f3afe900f Display errors on invalid forms
It will probably need a bit of styling…
2018-07-06 19:29:36 +02:00
Bat
153400959c Actually validate forms 2018-07-06 11:51:19 +02:00
Baptiste Gelez
1f5b2699c2
Merge pull request #109 from bitkeks/i18n/german
Add German (de) translation
2018-07-05 22:47:17 +02:00
Dominik Pataky
a391f1ae9d Add German (de) translation 2018-07-05 21:58:32 +02:00
Matthieu
d54fa51a6d New forms style 2018-06-30 15:21:05 +02:00
Trinity Pointard
ec4b791727 Update dependancy to rocket_csrf
fix #96
2018-06-30 09:38:44 +02:00
Baptiste Gelez
c7dc5e1644
Merge pull request #103 from fediverse-pl/master
i18n: Update Polish translation
2018-06-29 23:06:40 +02:00
Baptiste Gelez
1a8faddaea
Merge pull request #101 from gled-rs/patch-1
Update INSTALL.md
2018-06-29 23:02:30 +02:00
Marcin Mikołajczak
64998db08d i18n: Update Polish translation
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
2018-06-29 23:02:28 +02:00
Tristan Mahé
d0c9b31b33 install.md more 2018-06-29 12:15:10 -07:00
Tristan Mahé
a80ff75d7e Reference working rust nightly versions 2018-06-29 12:09:25 -07:00
Tristan Mahé
6b44597b0f
Update INSTALL.md
Better formatting.
2018-06-29 10:13:58 -07:00
Bat
c81bb9ec25 Make forms validatable 2018-06-29 14:56:00 +02:00
Bat
b008e11fb0 Add validator 2018-06-29 14:22:43 +02:00
Baptiste Gelez
6b1c68b89e
Merge pull request #99 from gled-rs/feature/install_instructions
Feature/install instructions
2018-06-29 12:11:04 +02:00
Tristan Mahé
52c000ef4b missing start postgresql 2018-06-28 16:34:00 -07:00
Tristan Mahé
3b9ccb0dda add nginx snippet 2018-06-28 16:32:15 -07:00
Tristan Mahé
484182c979 INSTALL.md: notes from installing Plume 2018-06-28 16:28:15 -07:00
Baptiste Gelez
59ff8efe3f
Merge pull request #95 from 9034725985/patch-1
add additional dependencies for fedora
2018-06-28 22:17:03 +02:00
Kushal
2360cf5bad
add additional dependencies for fedora
I need them to install diesel 

https://github.com/rust-lang/rust/issues/51873 

➜  ~ dnf info postgresql-server postgresql-contrib mariadb-devel libsq3-devel libpqxx libpqxx-devel
Last metadata expiration check: 29 days, 12:41:39 ago on Tue 29 May 2018 07:44:41 PM EDT.
Installed Packages
Name         : libpqxx
Epoch        : 1
Version      : 4.0.1
Release      : 11.fc28
Arch         : x86_64
Size         : 697 k
Source       : libpqxx-4.0.1-11.fc28.src.rpm
Repo         : @System
From repo    : fedora
Summary      : C++ client API for PostgreSQL
URL          : http://pqxx.org/
License      : BSD
Description  : C++ client API for PostgreSQL. The standard front-end (in the sense of
             : "language binding") for writing C++ programs that use PostgreSQL.
             : Supersedes older libpq++ interface.

Name         : libpqxx-devel
Epoch        : 1
Version      : 4.0.1
Release      : 11.fc28
Arch         : x86_64
Size         : 327 k
Source       : libpqxx-4.0.1-11.fc28.src.rpm
Repo         : @System
From repo    : fedora
Summary      : Development tools for libpqxx
URL          : http://pqxx.org/
License      : BSD
Description  : Development tools for libpqxx.

Name         : libsq3-devel
Version      : 20071018
Release      : 23.fc28
Arch         : x86_64
Size         : 1.4 M
Source       : libsqlite3x-20071018-23.fc28.src.rpm
Repo         : @System
From repo    : fedora
Summary      : Development files for libsqlite3x
URL          : http://www.wanderinghorse.net/computing/sqlite/
License      : zlib
Description  : The libsq3-devel package contains libraries and header files for
             : developing applications that use libsq3.

Name         : mariadb-devel
Epoch        : 3
Version      : 10.2.15
Release      : 2.fc28
Arch         : x86_64
Size         : 4.3 M
Source       : mariadb-10.2.15-2.fc28.src.rpm
Repo         : @System
From repo    : updates
Summary      : Files for development of MariaDB/MySQL applications
URL          : http://mariadb.org
License      : GPLv2 with exceptions and LGPLv2 and BSD
Description  : MariaDB is a multi-user, multi-threaded SQL database server.
             : MariaDB is a community developed branch of MySQL.
             : 
             : 
             : 
             : 
             : This package contains everything needed for developing MariaDB/MySQL server
             : applications. For developing client applications, use mariadb-connector-c
             : package.

Name         : postgresql-contrib
Version      : 10.4
Release      : 1.fc28
Arch         : x86_64
Size         : 2.4 M
Source       : postgresql-10.4-1.fc28.src.rpm
Repo         : @System
From repo    : updates
Summary      : Extension modules distributed with PostgreSQL
URL          : http://www.postgresql.org/
License      : PostgreSQL
Description  : The postgresql-contrib package contains various extension modules that are
             : included in the PostgreSQL distribution.

Name         : postgresql-server
Version      : 10.4
Release      : 1.fc28
Arch         : x86_64
Size         : 20 M
Source       : postgresql-10.4-1.fc28.src.rpm
Repo         : @System
From repo    : updates
Summary      : The programs needed to create and run a PostgreSQL server
URL          : http://www.postgresql.org/
License      : PostgreSQL
Description  : PostgreSQL is an advanced Object-Relational database management system (DBMS).
             : The postgresql-server package contains the programs needed to create
             : and run a PostgreSQL server, which will in turn allow you to create
             : and maintain PostgreSQL databases.

Available Packages
Name         : libpqxx
Epoch        : 1
Version      : 4.0.1
Release      : 11.fc28
Arch         : i686
Size         : 220 k
Source       : libpqxx-4.0.1-11.fc28.src.rpm
Repo         : fedora
Summary      : C++ client API for PostgreSQL
URL          : http://pqxx.org/
License      : BSD
Description  : C++ client API for PostgreSQL. The standard front-end (in the sense of
             : "language binding") for writing C++ programs that use PostgreSQL.
             : Supersedes older libpq++ interface.

Name         : libpqxx-devel
Epoch        : 1
Version      : 4.0.1
Release      : 11.fc28
Arch         : i686
Size         : 99 k
Source       : libpqxx-4.0.1-11.fc28.src.rpm
Repo         : fedora
Summary      : Development tools for libpqxx
URL          : http://pqxx.org/
License      : BSD
Description  : Development tools for libpqxx.

Name         : libsq3-devel
Version      : 20071018
Release      : 23.fc28
Arch         : i686
Size         : 181 k
Source       : libsqlite3x-20071018-23.fc28.src.rpm
Repo         : fedora
Summary      : Development files for libsqlite3x
URL          : http://www.wanderinghorse.net/computing/sqlite/
License      : zlib
Description  : The libsq3-devel package contains libraries and header files for
             : developing applications that use libsq3.

Name         : mariadb-devel
Epoch        : 3
Version      : 10.2.14
Release      : 1.fc28
Arch         : i686
Size         : 976 k
Source       : mariadb-10.2.14-1.fc28.src.rpm
Repo         : fedora
Summary      : Files for development of MariaDB/MySQL applications
URL          : http://mariadb.org
License      : GPLv2 with exceptions and LGPLv2 and BSD
Description  : MariaDB is a multi-user, multi-threaded SQL database server.
             : MariaDB is a community developed branch of MySQL.
             : 
             : 
             : 
             : 
             : This package contains everything needed for developing MariaDB/MySQL server
             : applications. For developing client applications, use mariadb-connector-c
             : package.

Name         : postgresql-server
Version      : 10.4
Release      : 1.fc28
Arch         : i686
Size         : 5.1 M
Source       : postgresql-10.4-1.fc28.src.rpm
Repo         : updates
Summary      : The programs needed to create and run a PostgreSQL server
URL          : http://www.postgresql.org/
License      : PostgreSQL
Description  : PostgreSQL is an advanced Object-Relational database management system (DBMS).
             : The postgresql-server package contains the programs needed to create
             : and run a PostgreSQL server, which will in turn allow you to create
             : and maintain PostgreSQL databases.
2018-06-28 08:28:01 -04:00
Bat
cb0b8297fa Fix a typo in the signature module
Thanks fdb-hiroshima for noticing it
2018-06-27 21:45:36 +02:00
Bat
1a2cf3b14f What if I use the correct name for the this field?
Fix #81
2018-06-27 20:43:09 +02:00
Bat
68a041711c We can't mix GET and POST (in the comment form)
in_response_to was always null
2018-06-27 00:19:18 +02:00
Bat
b26649e8c0 Document the USE_HTTPS variable 2018-06-26 18:16:18 +02:00
Bat
a8b47de28b Explicitely escape user data in translations to avoid XSS 2018-06-26 17:58:11 +02:00
Bat
a7b246b726 Change .tera to .html.tera to enable auto-escaping 2018-06-26 17:40:25 +02:00
Bat
9a825e7066 Change the signature of ap_url to be backward-compatible 2018-06-26 17:32:35 +02:00
Baptiste Gelez
f58bc1d8f1
Merge pull request #84 from Madeorsk/meta-buttons
Improved Likes / Reshares section
2018-06-26 16:36:10 +02:00
Baptiste Gelez
ca07950100
Merge pull request #83 from Plume-org/csrf-protection
Csrf protection
2018-06-26 16:30:24 +02:00
Bat
507d3e6183 Use USE_HTTPS to compute AP URLs
Instead of relying on cfg(debug_assertions)
2018-06-26 16:21:58 +02:00
Bat
f805ec1d53 Introduce an environment variable to disable HTTPS, and use it when fetching WebFinger resources
You can now use USE_HTTPS=0 when debugging the federation locally.
2018-06-26 16:16:59 +02:00
Trinity Pointard
5bbfd9d1e9 Set maximum image width to 100% of parent
fix #87
2018-06-25 16:03:59 +02:00
Trinity Pointard
5133410451 Properly verify password
fix #86
2018-06-25 15:38:39 +02:00
Matthieu
11e66472f9 Improved Likes / Reshares section 2018-06-25 14:10:24 +02:00
Trinity Pointard
3b9c53bebc Use proper repository for rocket_csrf 2018-06-24 19:02:47 +02:00
Trinity Pointard
30e9620d0a Add csrf protection 2018-06-24 18:58:57 +02:00
Bat
3bc90e71d4 Clean Cargo.toml files 2018-06-23 17:39:58 +01:00
Bat
68c7aad179 Big repository reorganization
The code is divided in three crates:
- plume-common, for the ActivityPub module, and some common utils
- plume-models, for the models and database-related code
- plume, the app itself

This new organization will allow to test it more easily, but also to create other tools that only reuse a little part of
the code (for instance a Wordpress import tool, that would just use the plume-models crate)
2018-06-23 17:36:11 +01:00
Bat
0a1edba4b0 Fix the custom properties deserialization bug for Blogs as well 2018-06-23 15:00:35 +01:00
Bat
e7fd12ae6f Set to and cc for new Follow activities 2018-06-23 13:47:53 +01:00
Bat
3a19cae62e Add id, to and cc for Undo Announce 2018-06-23 13:42:27 +01:00
Bat
a88d0e102f Like: only compute ap_url once 2018-06-23 13:40:10 +01:00
Bat
d2c8631ba4 Add cc and to for Announce 2018-06-23 13:36:15 +01:00
Bat
cd9862bc4c Add cc, id and to for Articles 2018-06-23 13:29:41 +01:00
Bat
3ab6dfe288 Add id, to and cc to Undo for Likes 2018-06-23 13:19:14 +01:00
Bat
135797805e Make Like compliant to the spec 2018-06-23 13:17:17 +01:00
Bat
f2795baab5 Make Create Note compliant to the spec 2018-06-23 13:07:07 +01:00