Commit Graph
100 Commits
Author SHA1 Message Date
Bat b7aa1790e5 Merge branch 'master' of github.com:Plume-org/Plume 2018-07-26 16:14:48 +02:00
Bat 65e0d72a73 Display date for notifications 2018-07-26 16:14:01 +02:00
Bat 7a6c01fec5 Add icons to notifications
And some space between each of them

Fix #139
2018-07-26 16:09:36 +02:00
Bat c87d490664 Refactor notifications 2018-07-26 15:46:10 +02:00
Baptiste GelezandGitHub 16fb439ce9 Merge pull request #159 from Ilphrin/master
Add a link to the blog on article cards
2018-07-25 21:40:27 +02:00
Bat 44172b67d5 Add padding for responses in comments, to let threads appear
Fixes #144
2018-07-25 18:18:41 +02:00
Bat 4e07fdbd05 Paginate followers too 2018-07-25 15:50:29 +02:00
Bat 4b0aba62f3 Add pagination for notifications
And correctly close an <a> tag
2018-07-25 15:33:54 +02:00
Bat 18125ab398 Paginate the homepage 2018-07-25 15:20:09 +02:00
Bat 740393bc18 Better style for pagination links 2018-07-25 14:41:48 +02:00
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
Baptiste GelezandGitHub 24f2030881 Merge pull request #158 from Ilphrin/master
Show the total number of article on a blog
2018-07-21 22:32:45 +02:00
Baptiste GelezandGitHub 7319cf9829 Merge pull request #156 from fediverse-pl/master
i18n: Update Polish translation
2018-07-21 14:32:18 +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 3764e295b8 Fix the link of the follow/unfollow button so that it is always working, even without a trailing slash 2018-07-20 17:59:16 +02:00
Bat b0e75f4d63 Fix the behavior of the follow button
There was a bug in Tera and in the User::is_following function.

Fix #146
2018-07-20 17:51:32 +02:00
Bat e581ef7d09 Better style for <small> tags 2018-07-19 12:00:34 +02:00
Bat 8ad0abd921 Mark optional fields as optionals
Fix #121
2018-07-19 11:32:20 +02:00
Bat 9701340c84 Allow the summary property to be absent from AP Actors 2018-07-19 10:41:37 +02:00
Bat 782955e2c4 Hide social button when not connected
Fixes #143
2018-07-18 23:37:05 +02:00
Bat a785cb987b Left-align articles
Fixes #119
2018-07-18 23:18:26 +02:00
Bat ce256d6e39 List authors of a blog
Update french translation accordingly

Fixes #129
2018-07-18 23:08:49 +02:00
Baptiste GelezandGitHub 216f334d75 Merge pull request #154 from Plume-org/mentions
Fix a bug in mentions
2018-07-18 19:12:04 +02:00
Bat 493fe731d0 Remove a debug message while we are at it 2018-07-18 19:02:31 +02:00
Bat 6b58dcfda5 Fix a bug in mentions
Fixes #98
2018-07-18 19:00:49 +02:00
Bat 16124e890e Add some test for mentions 2018-07-18 18:35:50 +02:00
Bat 2b04b39f5d Correctly parse HTTP Accept headers 2018-07-18 16:58:28 +02:00
Bat 3d436c10b1 Accept more content types when making AP requests 2018-07-18 16:25:02 +02:00
Bat e3a7eadb78 Do it lazily -_- 2018-07-18 16:03:52 +02:00
Bat 488bd929c5 Try to fix the Hubzilla issue (#107) again 2018-07-18 16:02:21 +02:00
Bat 389ad28d14 Don't broadcast activities to local users
Fix #80
2018-07-18 15:49:13 +02:00
Bat 62007d17ee Fix a visual bug when a post was reshared 2018-07-18 15:35:01 +02:00
Bat eef9e6b7ea Better style for form errors 2018-07-18 15:34:18 +02:00
Bat e22bd7a588 Fix some issues with new form style 2018-07-18 14:14:57 +02:00
Baptiste GelezandGitHub 4aa184ba45 Merge pull request #104 from Madeorsk/forms
New forms style
2018-07-18 13:39:30 +02:00
Baptiste GelezandGitHub cfca504592 Fix diesel_cli version in DEVELOPMENT.md 2018-07-17 22:36:47 +02:00
Baptiste GelezandGitHub 184e898360 Fix diesel_cli version in INSTALL.md 2018-07-17 22:36:07 +02:00
Baptiste GelezandGitHub b963fab45f Fix empty button
When using the french translation
2018-07-17 12:12:12 +02:00
Baptiste GelezandGitHub d0a898a6e8 Update french translation 2018-07-17 12:10:55 +02:00
Baptiste GelezandGitHub bd6bf76351 Merge pull request #118 from fediverse-pl/master
i18n: Update Polish translation
2018-07-16 21:32:47 +02:00
Bat cf23360c4a Avoid panics when encountering an invalid mention 2018-07-11 22:11:31 +02:00
Bat 67dd577a27 Make like and share button HTML forms
Fixes #88
2018-07-11 21:27:47 +02:00
Bat 0e773de9ff Remove old configuration template 2018-07-11 17:37:36 +02:00
Bat b59299ad5a Remove the last build warning
The host-meta route is only available in XML anyway, and having warning during is making people doubt of its validity.
2018-07-11 17:31:02 +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 8e47219d82 Add a ApRequest request guard to accept multiple ActivityPub header on one route 2018-07-09 17:24:53 +02:00
Bat 3796aa48c2 Document gettext installation
At least for Ubuntu-like distros
2018-07-09 15:14:07 +02:00
Bat 291e20cb94 Remove a "l" lost in a migration file 2018-07-09 15:11:02 +02:00
Bat f79f01a93f Accept both actor objects and links for Follows 2018-07-08 20:01:19 +02:00
Baptiste GelezandGitHub 6fe70cd723 Merge pull request #111 from Plume-org/form-validation
Form validation
2018-07-08 14:28:47 +02:00
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 GelezandGitHub 1f5b2699c2 Merge pull request #109 from bitkeks/i18n/german
Add German (de) translation
2018-07-05 22:47:17 +02:00
Baptiste GelezandGitHub c7dc5e1644 Merge pull request #103 from fediverse-pl/master
i18n: Update Polish translation
2018-06-29 23:06:40 +02:00
Baptiste GelezandGitHub 1a8faddaea Merge pull request #101 from gled-rs/patch-1
Update INSTALL.md
2018-06-29 23:02:30 +02: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 GelezandGitHub 6b1c68b89e Merge pull request #99 from gled-rs/feature/install_instructions
Feature/install instructions
2018-06-29 12:11:04 +02:00
Baptiste GelezandGitHub 59ff8efe3f Merge pull request #95 from 9034725985/patch-1
add additional dependencies for fedora
2018-06-28 22:17:03 +02: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 GelezandGitHub f58bc1d8f1 Merge pull request #84 from Madeorsk/meta-buttons
Improved Likes / Reshares section
2018-06-26 16:36:10 +02:00
Baptiste GelezandGitHub 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
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
Bat 3ea4823060 Make Accept Follow compliant to the spec 2018-06-23 12:50:14 +01:00
Bat 236767f498 Send the 'Content-Type: application/activity+json' header for ActivityPub request
Should fix #76
2018-06-23 12:23:37 +01:00
Bat 6140865660 Make Post::from_activity a bit more complete 2018-06-23 12:14:03 +01:00
Bat 3b2ca041d0 Rewrite Post::into_activity in a nicer way
And prefer expect over unwrap
2018-06-22 21:45:37 +01:00
Bat 6a5d806b1d Various federation fixes 2018-06-22 16:17:53 +01:00
Baptiste GelezandGitHub ffb4f6e6d8 Merge pull request #71 from Zanfib/master
solve #68
2018-06-22 09:52:43 +01:00
Bat e34d12922c Serialize publicKey in Person representation 2018-06-21 22:12:24 +01:00
Bat dccab062e3 Implement Blog::into_activity 2018-06-21 22:07:04 +01:00
Bat a0f680a9b6 Rewrite Blog::from_activity to use the activitypub crate instead of raw JSON 2018-06-21 21:39:44 +01:00
Bat e7e557612e Rewrite User::from_activity to use the activitypub crate instead of raw JSON 2018-06-21 21:30:56 +01:00
Bat f5f2aa7c59 Get rid of the activity_pub::actor::Actor trait 2018-06-21 18:53:57 +01:00
Bat 9a8472bdcc Move compute_box from Actor to Instance 2018-06-21 18:42:17 +01:00
Bat 606a3d12c7 Remove useless functions from activity_pub::actor::Actor 2018-06-21 18:23:01 +01:00
Bat 7812b9bc8f Aardwolf -> Plume
Copy/pasting is bad :p
2018-06-21 18:11:33 +01:00
Bat 201d7cab8b Merge branch 'master' of github.com:Plume-org/Plume 2018-06-21 18:11:07 +01:00