aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--locale/fr_FR.json7
-rw-r--r--routes/actor.php2
-rw-r--r--routes/note_fragment.php2
3 files changed, 9 insertions, 2 deletions
diff --git a/locale/fr_FR.json b/locale/fr_FR.json
index b17b03a..5ba3398 100644
--- a/locale/fr_FR.json
+++ b/locale/fr_FR.json
@@ -3,11 +3,16 @@
"user.profile.createdAt": "Inscrit le %s",
"user.profile.bio.placeholder": "Cet utilisateur n'a pas encore écrit de biographie.",
"user.notes.placeholder": "Cet utilisateur n'a encore rien publié.",
+ "note.info.replyTo": "En réponse à %s",
"timeline.global": "Chronologie mondiale",
"timeline.local": "Chronologie locale",
"placeholder": "Il n'y a rien ici.",
"timeline.global.shortName": "Mondiale",
"timeline.local.shortName": "Locale",
"digitigrade": "La Digitigrade 🇫🇷🇫🇷🇫🇷🇫🇷",
- "note.resharedBy": "Repartegé par %s"
+ "note.resharedBy": "Repartegé par %s",
+ "writeNote.label": "Écriver une note",
+ "writeNote.action": "Poster",
+ "writeReply.label": "Écriver une réponse",
+ "writeReply.action": "Répondre"
}
diff --git a/routes/actor.php b/routes/actor.php
index 57bfbc5..a3b69d1 100644
--- a/routes/actor.php
+++ b/routes/actor.php
@@ -28,6 +28,7 @@ Router::getInstance()->mount('/actor/:id/basicFeed', function (array $args) {
json_response([
'page' => 1,
'totalPages' => 1,
+ 'totalItems' => count($notes),
'nextPage' => null,
'previousPage' => null,
'items' => array_map(function (Note $note) {
@@ -43,6 +44,7 @@ Router::getInstance()->mount('/actor/:id/fullFeed', function (array $args) {
json_response([
'page' => 1,
'totalPages' => 1,
+ 'totalItems' => count($notes),
'nextPage' => null,
'previousPage' => null,
'items' => $notes
diff --git a/routes/note_fragment.php b/routes/note_fragment.php
index 83e7655..53fd7af 100644
--- a/routes/note_fragment.php
+++ b/routes/note_fragment.php
@@ -43,7 +43,7 @@ Router::getInstance()->mount('/fragment/note/:id/reply', function (array $args)
$reply->save();
$reply->publish();
}
- render_template('reply_form');
+ render_template('reply_form', ['note' => $note]);
});
Router::getInstance()->mount('/fragment/note', function (array $args) {