b21phiro / jds-website

Development branch for the website Junior Dev Sweden (JDS).
MIT License
10 stars 3 forks source link

Jds 1.0 discord chat data #24

Closed b21phiro closed 2 months ago

b21phiro commented 2 months ago

Related to issue: https://github.com/b21phiro/jds-website/issues/17

rdunder commented 2 months ago

I can not find any problems with this P.R

svenkilberg commented 2 months ago

Suggestion: An folder named img is created in root. In this folder an image is placed for the avatar of each user. Example RobertMiliAvatar.png. The avatar url is added to chat data.

{
  "comments": [
    {
      "author": "RobertMili",
      "comment": "Najs, tack för tips. Jag kan fixa idag, jag verkligen uppskattar göt eran tips \uD83D\uDCAA",
      "date": "2024-09-02",
      "avatarUrl": "/img/RobertMiliAvatar.png"
    }
}

/img/RobertMiliAvatar.png is supposed to be a root based url.

This should enable dynamic handling of the avatar image for each author.