aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/pending_follows.php
diff options
context:
space:
mode:
authorwinter2025-01-16 20:21:42 +0000
committerwinter2025-01-16 20:21:42 +0000
commitb1d6fbc4d740324d96d7fe2677fb15b9b59d20ea (patch)
treeae2c996cc6a42b3a42437a7ec8812cd184644817 /routes/pending_follows.php
parent8de5608976dc8a73a400267601acb4c8e127de5a (diff)
follow requests
Diffstat (limited to 'routes/pending_follows.php')
-rw-r--r--routes/pending_follows.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/routes/pending_follows.php b/routes/pending_follows.php
new file mode 100644
index 0000000..d3bd9da
--- /dev/null
+++ b/routes/pending_follows.php
@@ -0,0 +1,10 @@
+<?php
+
+use Digitigrade\Model\UserAccount;
+use Digitigrade\Router;
+
+Router::getInstance()->mount('/followrequests', function (array $args) {
+ $user = UserAccount::requireByCurrentSession();
+ $actors = $user->actor->findPendingFollowers();
+ render_template('follow_requests_page', ['actors' => $actors]);
+}); \ No newline at end of file