Bat
04dac6f87f
Add pagination links
2018-07-25 14:29:34 +02:00
Bat
5549e4d0e5
Merge branch 'master' of github.com:Plume-org/Plume
2018-07-24 14:32:11 +02:00
Kevin "Ilphrin" Pellet
cd24b0f057
Show the total number of article on a blog
...
fixes #150
2018-07-21 16:58:30 +02:00
Bat
67eb41add1
Add pagination to the blog page
...
No UI to control it yet
2018-07-20 18:42:35 +02:00
Bat
ce256d6e39
List authors of a blog
...
Update french translation accordingly
Fixes #129
2018-07-18 23:08:49 +02:00
Bat
b95e384ed7
Use the ApRequest guard for routes that need it + Fix a few issues with its impl
...
Also fixes some Rocket warnings!
2018-07-11 17:30:01 +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
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
Bat
c81bb9ec25
Make forms validatable
2018-06-29 14:56:00 +02:00
Trinity Pointard
30e9620d0a
Add csrf protection
2018-06-24 18:58:57 +02: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
Didier Link
b153a9ce2b
add an argument in the macro may_fail to have the account linked in the error template
2018-06-22 00:50:06 +02:00
Bat
dccab062e3
Implement Blog::into_activity
2018-06-21 22:07:04 +01:00
Bat
b2e8d54161
Drop activity_pub::activitypub and activity_pub::ActivityPub and only use the ActivityStream responder
2018-06-21 18:09:18 +01:00
Bat
8ab25b1ca2
Use uri! as much as possible instead of directly writing URLs
2018-06-19 22:20:27 +01:00
Trinity Pointard
db248701b9
Disallow blog name which yould result in empty blog name
...
fix #63
2018-06-19 22:34:59 +02:00
Bat
857e1f1d6a
Disallow naming an article 'new', or any already used slug
...
Fix #64
Also fixes a lot of potential bug with articles having the same slugs, but not in the same blog
2018-06-19 20:16:18 +01:00
Bat
1653a3ac74
Check for existing slug before creating a new blog
...
Fix #63
2018-06-19 19:40:20 +01:00
Bat
51571d6320
may_fail! macro
...
Returns an error template if an Option is None, else runs the given block
2018-06-18 18:28:28 +01:00
Bat
7e3cdec0b6
Add some to_json functions to models for serialization in templates
2018-06-18 17:34:29 +01:00
Bat
b18aa33c70
Update to the latest version of Rocket, to use rocket_contrib::Template::custom
2018-06-16 18:39:22 +01:00
Bat
7fd152e270
Add a button to write a new article
2018-06-10 19:16:25 +01:00
Bat
78362feffb
Use the activitypub crate
2018-06-10 12:13:07 +01:00
Trinity Pointard
8158f19b85
add fallback to url generating 404
2018-06-04 21:57:03 +02:00
Trinity Pointard
a8aeb40b95
add trailing slashes to links where they were missing
...
Signed-off-by: Trinity Pointard <trinity.pointard@insa-rennes.fr>
2018-05-22 17:35:16 +02:00
Bat
b55622f2b1
Reorganize use statements
2018-05-19 08:39:59 +01:00
Bat
c779b1c58a
WIP: use the activitystreams crate
2018-05-16 19:20:44 +01:00
Bat
91b19bccb5
Add a link to author's profile on article card
...
Use a macro to render those cards too
2018-05-13 18:19:23 +01:00
Bat
5e7d513a7e
Make it possible to display remote blogs
2018-05-13 18:00:47 +01:00
Bat
b8aade1e12
Delete likes
2018-05-12 21:56:57 +01:00
Bat
b68e481b3f
Make the website more mobile-friendly
2018-05-12 18:59:38 +01:00
Bat
6de9d5b82a
Articles listings on blogs and users pages
2018-05-12 14:31:09 +01:00
Bat
a74215ef07
Start an actual design
2018-05-10 21:31:52 +01:00
Bat
292f4d6b27
Add actual templates for everything
2018-05-09 20:09:52 +01:00
Bat
cf41ae5fda
Refactor activity_pub::activity::Activity
...
I only had to wrap it in Arc… -_-
2018-05-02 22:36:13 +01:00
Bat
afe98ab1c3
Start refactoring activities
2018-05-02 21:44:03 +01:00
Bat
5f43f783b6
Use more env vars for config
...
It will make it easier to test federation
2018-05-02 12:53:42 +01:00
Bat
4666cd3ee3
Blog outbox
2018-04-29 18:49:56 +01:00
Bat
721456de30
Actually start playing with ActivityPub
...
And Rust
2018-04-24 15:52:47 +01:00
Bat
0b00849a62
Refactor ActivityPub
2018-04-24 13:31:02 +01:00
Bat
0c9a1bfc3a
Reorganize uses
2018-04-24 10:21:39 +01:00
Bat
e9bcaf4dd9
Add Actor ActivityPub representation
2018-04-23 17:26:01 +01:00
Bat
656b201244
Pluralize model modules
2018-04-23 16:19:28 +01:00
Bat
7b3a884ec6
Add ActivityPub endpoint for actors
2018-04-23 16:09:05 +01:00
Bat
0e24b3cdb7
Add creator of the blog as author
2018-04-23 14:22:07 +01:00
Bat
9240ca3a84
Compute outbox/inbox URLs from activity_pub::Actor
2018-04-23 14:12:59 +01:00
Bat
00e5f28d0b
Require authentication for creating blog + Fix utils::make_actor_id
2018-04-23 12:10:15 +01:00
Bat
9130f4d848
Basic blog creation
2018-04-23 11:54:37 +01:00