sbrl / Pepperminty-Wiki

A wiki in a box
https://peppermint.mooncarrot.space/
Mozilla Public License 2.0
180 stars 22 forks source link

User Avatars #107

Closed sbrl closed 7 years ago

sbrl commented 7 years ago

It would be really cool if users could have avatars. Perhaps a user preference system could be used, which could allow the user to set their email address. This would allow us to use Gravatar for avatars and avoid the uploading problem.

Another approach would be to have a special filename scheme for user avatars when uploading images. For example Files/Avatars/Username.jpeg. In this case we would need to restrict avatar uploading such that one user can't upload another's avatar.

sbrl commented 7 years ago

Or perhaps Users/avatar.ext?

sbrl commented 7 years ago

Looks good! I think we can call this done now :D

The next step is to add is-modified-since and etag support to the preview generator - to prevent it from overworking itself.

sbrl commented 7 years ago

Oh, wow! Turns out I implemented etag support ages ago! That's one less thing to worry about - now we just have to hope it works.... let me know if there's any weirdness going on. I know chrome for one doesn't use the cache much of you actually refresh the page manually - you have to follow a link.... making it a real pain to test.