Skip to content

Commit

Permalink
Friends: Add 'add friend' button to the main page
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Nov 10, 2023
1 parent dec355a commit 7241382
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/chat-plugins/friends.ts
Expand Up @@ -98,6 +98,9 @@ export const Friends = new class {
}
buf += `</h3> `;

buf += `<form data-submitsend="/friend add {username}">Add friend: <input name="username" /><br />`;
buf += `<button class="button" type="submit">Add <i class="fa fa-paper-plane"></i></button></form>`;

for (const key in categorized) {
const friendArray = categorized[key].sort();
if (friendArray.length === 0) continue;
Expand Down

0 comments on commit 7241382

Please sign in to comment.