Is it possible to add keywords and descriptions to optimize for search

โš“ Dev    ๐Ÿ“… 2023-10-10    ๐Ÿ‘ค Kafka    ๐Ÿ‘๏ธ 255      

Kafka

Warning

This post was published 142 days ago. The infomation described in this article may have changed.

It might be possible to do this simply through a configuration file

๐Ÿท๏ธ seo

Kafka    2023-10-10 ๐Ÿ‘ ๐Ÿ‘Ž [op]

@freedit After uploading an avatar there is no indication to the user if the image was uploaded successfully or not, perhaps a message could be added

1

Kafka    2023-10-10 ๐Ÿ‘ ๐Ÿ‘Ž [op]

@freedit Users should be prohibited from using spaces during registration, as it can cause confusion for other users with the same name. I tested two users, โ€˜test+spaceโ€™ and โ€˜freedit+space,โ€™ and both were registered successfully! They are respectively ID 84 and ID 85. @test @freedit

6

freedit    2023-10-10 ๐Ÿ‘ ๐Ÿ‘Ž

Maybe add it in site-setting.

You are right about space in username. But you canโ€™t stop all name-spoofing. So just ignore it. Actually, the two user you provided could be identified by system.

7

Kafka    2023-10-12 ๐Ÿ‘ ๐Ÿ‘Ž [op]

code testing

RUST if input.username.contains(' ') { return Err(AppError::NameContainsSpace); } else if !is_valid_name(&input.username) { return Err(AppError::NameInvalid); }

    if input.username.contains(' ') {
        return Err(AppError::NameContainsSpace);
    } else if !is_valid_name(&input.username) {
        return Err(AppError::NameInvalid);
    }
9

Kafka    2023-10-12 ๐Ÿ‘ ๐Ÿ‘Ž [op]

@freedit Can you tell me in which file the code shown in the content is implemented? I want to modify their display style.

10

Kafka    2023-10-13 ๐Ÿ‘ ๐Ÿ‘Ž [op]

#11 Iโ€™m very sorry, I didnโ€™t express myself clearly. What I meant is how to modify the code rendering in the article to make it look like the image. Because I need to add multiple div elements, Iโ€™d like to know how to add div elements around it during code rendering.

For example, like this

<div class="bg-gray-200 w-48 h-64 rounded-lg">
  <div class="flex p-2 gap-1">
    <div class="">
      <span class="bg-teal-500 inline-block center w-3 h-3 rounded-full"></span>
    </div>
    <div class="circle">
      <span class="bg-orange-500 inline-block center w-3 h-3 rounded-full"></span>
    </div>
    <div class="circle">
      <span class="bg-indigo-500 box inline-block center w-3 h-3 rounded-full"></span>
    </div>
  </div>
  <div class="card__content">
    Code displayed here
  </div>
</div>
12